Package org.bouncycastle.asn1.x509
Class OtherName
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.OtherName
- All Implemented Interfaces:
ASN1Encodable,Encodable
The OtherName object.
OtherName ::= SEQUENCE {
type-id OBJECT IDENTIFIER,
value [0] EXPLICIT ANY DEFINED BY type-id }
-
Constructor Summary
ConstructorsConstructorDescriptionOtherName(ASN1ObjectIdentifier typeID, ASN1Encodable value) Base constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic OtherNamegetInstance(Object obj) OtherName factory method.getValue()Method providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
OtherName
Base constructor.- Parameters:
typeID- the type of the other name.value- the ANY object that represents the value.
-
-
Method Details
-
getInstance
OtherName factory method.- Parameters:
obj- the object used to construct an instance ofOtherName. It must be an instance ofOtherNameorASN1Sequence.- Returns:
- the instance of
OtherNamebuilt from the supplied object. - Throws:
IllegalArgumentException- if the object passed to the factory is not an instance ofOtherNameor something that can be converted into an appropriateASN1Sequence.
-
getTypeID
-
getValue
-
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-