Record Class PreCertificateResult
java.lang.Object
java.lang.Record
zeroecho.pkix.ct.PreCertificateResult
- Record Components:
preCertDer- DER-encoded pre-certificate (signed by the issuing CA key)chainDer- DER-encoded issuer chain in submission order (issuer first, root last)
The result of building a CT pre-certificate: a signed pre-cert and its issuer chain,
ready for submission to a Certificate Transparency log.
A pre-certificate is a certificate with the same TBSCertificate content as
the intended final certificate, except that it carries the CT poison extension
(OID 1.3.6.1.4.1.11129.2.4.3) marked critical, and lacks the SCT list
extension. CT logs return SCTs in response to pre-certificate submissions; those SCTs
are embedded into the final certificate before signing.
All arrays are defensively copied; the record is immutable and thread-safe.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionPreCertificateResult(byte[] preCertDer, List<byte[]> chainDer) Validates and defensively copies all contents. -
Method Summary
Modifier and TypeMethodDescriptionList<byte[]> chainDer()Returns an immutable list of independent copies of the issuer chain DER.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]Returns an independent copy of the pre-certificate DER.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PreCertificateResult
Validates and defensively copies all contents.
-
-
Method Details
-
preCertDer
public byte[] preCertDer()Returns an independent copy of the pre-certificate DER.- Returns:
- pre-certificate DER bytes
-
chainDer
Returns an immutable list of independent copies of the issuer chain DER.- Returns:
- issuer chain DER, issuer first
-
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).
-