Record Class RelativeDistinguishedName
java.lang.Object
java.lang.Record
zeroecho.pkix.RelativeDistinguishedName
- Record Components:
attributeTypeOid- the attribute-type OID (e.g.2.5.4.3for CN)value- the attribute valuestringType- the ASN.1 string type used to encode the value
public record RelativeDistinguishedName(String attributeTypeOid, String value, DirectoryStringType stringType)
extends Record
A single-valued relative distinguished name: an attribute-type OID, its value,
and the ASN.1 string type used to encode that value.
Used with Pkix.distinguishedName(java.util.List) to build a byte-exact
X500Principal from typed components, so callers
that apply their own naming policy control the exact DER encoding.
-
Constructor Summary
ConstructorsConstructorDescriptionRelativeDistinguishedName(String attributeTypeOid, String value, DirectoryStringType stringType) Canonicalizing constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributeTypeOidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestringTyperecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
RelativeDistinguishedName
public RelativeDistinguishedName(String attributeTypeOid, String value, DirectoryStringType stringType) Canonicalizing constructor.
-
-
Method Details
-
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). -
attributeTypeOid
Returns the value of theattributeTypeOidrecord component.- Returns:
- the value of the
attributeTypeOidrecord component
-
value
-
stringType
Returns the value of thestringTyperecord component.- Returns:
- the value of the
stringTyperecord component
-