Record Class CertId
java.lang.Object
java.lang.Record
zeroecho.pkix.ocsp.CertId
- Record Components:
hashAlgorithm- the digest algorithm used for the name and key hashesissuerNameHash- the digest of the issuer distinguished nameissuerKeyHash- the digest of the issuer public keyserialNumber- the certificate serial number
public record CertId(AlgorithmIdentifier hashAlgorithm, byte[] issuerNameHash, byte[] issuerKeyHash, BigInteger serialNumber)
extends Record
An OCSP
CertID (RFC 6960): identifies a certificate by the hash of its
issuer's name and key together with the certificate serial number.-
Constructor Summary
ConstructorsConstructorDescriptionCertId(AlgorithmIdentifier hashAlgorithm, byte[] issuerNameHash, byte[] issuerKeyHash, BigInteger serialNumber) Canonicalizing constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the value of thehashAlgorithmrecord component.inthashCode()Returns a hash code value for this object.byte[]Returns the issuer-key digest without exposing the record's internal array.byte[]Returns the issuer-name digest without exposing the record's internal array.Returns the value of theserialNumberrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
CertId
public CertId(AlgorithmIdentifier hashAlgorithm, byte[] issuerNameHash, byte[] issuerKeyHash, BigInteger serialNumber) Canonicalizing constructor.
-
-
Method Details
-
issuerNameHash
public byte[] issuerNameHash()Returns the issuer-name digest without exposing the record's internal array.- Returns:
- a defensive copy of the issuer-name digest
-
issuerKeyHash
public byte[] issuerKeyHash()Returns the issuer-key digest without exposing the record's internal array.- Returns:
- a defensive copy of the issuer-key digest
-
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
-
hashAlgorithm
Returns the value of thehashAlgorithmrecord component.- Returns:
- the value of the
hashAlgorithmrecord component
-
serialNumber
Returns the value of theserialNumberrecord component.- Returns:
- the value of the
serialNumberrecord component
-