Record Class OcspResponderService.PrincipalMapping
java.lang.Object
java.lang.Record
zeroecho.pki.server.OcspResponderService.PrincipalMapping
- Record Components:
mappingId- stable mapping identifierprincipalId- security principal selected by a matchtype- cryptographic value represented by the commitmentcommitment- lowercase SHA-256 commitment
- Enclosing class:
OcspResponderService
public static record OcspResponderService.PrincipalMapping(String mappingId, String principalId, OcspResponderService.PrincipalMappingType type, String commitment)
extends Record
One cryptographic requester-certificate mapping.
-
Constructor Summary
ConstructorsConstructorDescriptionPrincipalMapping(String mappingId, String principalId, OcspResponderService.PrincipalMappingType type, String commitment) Validates stable mapping metadata and fixed commitment. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommitmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themappingIdrecord component.Returns the value of theprincipalIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
PrincipalMapping
public PrincipalMapping(String mappingId, String principalId, OcspResponderService.PrincipalMappingType type, String commitment) Validates stable mapping metadata and fixed commitment.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
mappingId
-
principalId
Returns the value of theprincipalIdrecord component.- Returns:
- the value of the
principalIdrecord component
-
type
-
commitment
Returns the value of thecommitmentrecord component.- Returns:
- the value of the
commitmentrecord component
-