Top Description Fields Constructors Methods
org.bouncycastle.asn1.x509

public Class OtherName

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1Object, .ASN1ObjectIdentifier, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence, .DERTaggedObject

The OtherName object.
OtherName ::= SEQUENCE {
     type-id    OBJECT IDENTIFIER,
     value      [0] EXPLICIT ANY DEFINED BY type-id }

Field Summary

Modifier and TypeField and Description
private final ASN1ObjectIdentifier
private final ASN1Encodable

Constructor Summary

AccessConstructor and Description
public
OtherName(ASN1ObjectIdentifier
the type of the other name.
typeID
,
ASN1Encodable
the ANY object that represents the value.
value
)

Base constructor.

private

Method Summary

Modifier and TypeMethod and Description
public static OtherName

Returns:

the instance of OtherName built from the supplied object.
getInstance
(Object
the object used to construct an instance of OtherName. It must be an instance of OtherName or ASN1Sequence.
obj
)

OtherName factory method.

public ASN1ObjectIdentifier
public ASN1Encodable
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

typeIDback to summary
private final ASN1ObjectIdentifier typeID
valueback to summary
private final ASN1Encodable value

Constructor Detail

OtherNameback to summary
public OtherName(ASN1ObjectIdentifier typeID, ASN1Encodable value)

Base constructor.

Parameters
typeID:ASN1ObjectIdentifier

the type of the other name.

value:ASN1Encodable

the ANY object that represents the value.

OtherNameback to summary
private OtherName(ASN1Sequence seq)

Method Detail

getInstanceback to summary
public static OtherName getInstance(Object obj)

OtherName factory method.

Parameters
obj:Object

the object used to construct an instance of OtherName. It must be an instance of OtherName or ASN1Sequence.

Returns:OtherName

the instance of OtherName built from the supplied object.

Exceptions
IllegalArgumentException:
if the object passed to the factory is not an instance of OtherName or something that can be converted into an appropriate ASN1Sequence.
getTypeIDback to summary
public ASN1ObjectIdentifier getTypeID()
getValueback to summary
public ASN1Encodable getValue()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.