Record Class ResponderId.ByKey
java.lang.Object
java.lang.Record
zeroecho.pkix.ocsp.ResponderId.ByKey
- Record Components:
keyHash- the responder key hash
- All Implemented Interfaces:
ResponderId
- Enclosing interface:
ResponderId
Responder identified by the SHA-1 hash of its public key.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ResponderId
ResponderId.ByKey, ResponderId.ByName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]keyHash()Returns the responder key hash without exposing the record's internal array.toString()Returns a string representation of this record class.
-
Constructor Details
-
ByKey
public ByKey(byte[] keyHash) Canonicalizing constructor.
-
-
Method Details
-
keyHash
public byte[] keyHash()Returns the responder key hash without exposing the record's internal array.- Returns:
- a defensive copy of the responder public-key hash
-
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). -
hashCode
-
toString
-