Record Class OcspResponderService.RequesterTrustPolicy
java.lang.Object
java.lang.Record
zeroecho.pki.server.OcspResponderService.RequesterTrustPolicy
- Record Components:
trustSelectors- repository-backed trust selectorsprincipalMappings- cryptographic requester-to-principal mappingssignatureBindings- permitted OCSP request-signature bindingsrevocationPolicy- requester revocation validation policymaximumSignerCertificates- maximum certificates accepted in a requester chainmaximumSignerChainBytes- maximum encoded requester-chain size in bytes
- Enclosing class:
OcspResponderService
public static record OcspResponderService.RequesterTrustPolicy(List<OcspResponderService.TrustSelector> trustSelectors, List<OcspResponderService.PrincipalMapping> principalMappings, List<OcspResponderService.RequestSignatureBinding> signatureBindings, OcspResponderService.RequesterRevocationPolicy revocationPolicy, int maximumSignerCertificates, int maximumSignerChainBytes)
extends Record
Finite immutable requester trust, mapping, signature and chain policy.
-
Constructor Summary
ConstructorsConstructorDescriptionRequesterTrustPolicy(List<OcspResponderService.TrustSelector> trustSelectors, List<OcspResponderService.PrincipalMapping> principalMappings, List<OcspResponderService.RequestSignatureBinding> signatureBindings, OcspResponderService.RequesterRevocationPolicy revocationPolicy, int maximumSignerCertificates, int maximumSignerChainBytes) Validates and snapshots the complete closed policy. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaximumSignerCertificatesrecord component.intReturns the value of themaximumSignerChainBytesrecord component.Returns the value of theprincipalMappingsrecord component.Returns the value of therevocationPolicyrecord component.Returns the value of thesignatureBindingsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustSelectorsrecord component.
-
Constructor Details
-
RequesterTrustPolicy
public RequesterTrustPolicy(List<OcspResponderService.TrustSelector> trustSelectors, List<OcspResponderService.PrincipalMapping> principalMappings, List<OcspResponderService.RequestSignatureBinding> signatureBindings, OcspResponderService.RequesterRevocationPolicy revocationPolicy, int maximumSignerCertificates, int maximumSignerChainBytes) Validates and snapshots the complete closed policy.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
trustSelectors
Returns the value of thetrustSelectorsrecord component.- Returns:
- the value of the
trustSelectorsrecord component
-
principalMappings
Returns the value of theprincipalMappingsrecord component.- Returns:
- the value of the
principalMappingsrecord component
-
signatureBindings
Returns the value of thesignatureBindingsrecord component.- Returns:
- the value of the
signatureBindingsrecord component
-
revocationPolicy
Returns the value of therevocationPolicyrecord component.- Returns:
- the value of the
revocationPolicyrecord component
-
maximumSignerCertificates
public int maximumSignerCertificates()Returns the value of themaximumSignerCertificatesrecord component.- Returns:
- the value of the
maximumSignerCertificatesrecord component
-
maximumSignerChainBytes
public int maximumSignerChainBytes()Returns the value of themaximumSignerChainBytesrecord component.- Returns:
- the value of the
maximumSignerChainBytesrecord component
-