Record Class CertificateExtension
java.lang.Object
java.lang.Record
zeroecho.pkix.CertificateExtension
- Record Components:
oid- dotted-decimal extension OIDcritical- whether the extension is marked criticalderValue- exact DER of the extension value (the contents of theextnValueOCTET STRING, not the OCTET STRING wrapper)
A generic X.509 v3 extension (RFC 5280, 4.1): an OID, a criticality flag, and
the exact DER of the
extnValue OCTET STRING contents.
High-level typed extensions (key usage, extended key usage, basic constraints, subject alternative names, key identifiers) are expressed through the builder's dedicated methods; this generic form carries any other extension and is what a parsed request exposes for extensions the API does not model explicitly.
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateExtension(String oid, boolean critical, byte[] derValue) Canonicalizing constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleancritical()Returns the value of thecriticalrecord component.byte[]derValue()Returns the encoded extension value without exposing the record's internal array.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.oid()Returns the value of theoidrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
CertificateExtension
Canonicalizing constructor.
-
-
Method Details
-
derValue
public byte[] derValue()Returns the encoded extension value without exposing the record's internal array.- Returns:
- a defensive copy of the extension value DER
-
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. -
hashCode
-
toString
-
oid
-
critical
-