Record Class CsrAttribute
java.lang.Object
java.lang.Record
zeroecho.pkix.csr.CsrAttribute
- Record Components:
oid- the attribute type OIDderValues- the exact DER of each attribute value
-
Constructor Summary
ConstructorsConstructorDescriptionCsrAttribute(String oid, List<byte[]> derValues) Canonicalizing constructor. -
Method Summary
Modifier and TypeMethodDescriptionDecodes one standard PKCS#9 challengePassword DirectoryString, bounded to 255 characters.List<byte[]> Returns the encoded attribute values without exposing their internal arrays.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.oid()Returns the value of theoidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CsrAttribute
-
-
Method Details
-
derValues
Returns the encoded attribute values without exposing their internal arrays.- Returns:
- immutable list whose encoded values are defensive copies
-
challengePassword
Decodes one standard PKCS#9 challengePassword DirectoryString, bounded to 255 characters. This validates syntax only; the returned secret must not enter diagnostics or ordinary request projections.- Returns:
- challenge text
- Throws:
IllegalArgumentException- for a different OID, multiplicity, type or size
-
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). -
oid
-