Record Class GeneralName.OtherName
java.lang.Object
java.lang.Record
zeroecho.pkix.GeneralName.OtherName
- Record Components:
typeOid- thetype-idOIDderValue- exact DER of thevaluefield
- All Implemented Interfaces:
GeneralName
- Enclosing interface:
GeneralName
public static record GeneralName.OtherName(String typeOid, byte[] derValue)
extends Record
implements GeneralName
otherName (tag 0): a type-id OID plus the exact DER of the value.-
Nested Class Summary
Nested classes/interfaces inherited from interface GeneralName
GeneralName.DirectoryName, GeneralName.DnsName, GeneralName.IpAddress, GeneralName.OtherName, GeneralName.RegisteredId, GeneralName.Rfc822Name, GeneralName.UniformResourceIdentifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]derValue()Returns the encoded 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.toString()Returns a string representation of this record class.typeOid()Returns the value of thetypeOidrecord component.
-
Constructor Details
-
OtherName
Canonicalizing constructor.
-
-
Method Details
-
derValue
public byte[] derValue()Returns the encoded value without exposing the record's internal array.- Returns:
- a defensive copy of the exact DER value
-
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
-
typeOid
-