org.bouncycastle.asn1

Class DERObjectIdentifier

public class DERObjectIdentifier extends ASN1Object

Constructor Summary
DERObjectIdentifier(String identifier)
Method Summary
StringgetId()
static DERObjectIdentifiergetInstance(Object obj)
return an OID from the passed in object
static DERObjectIdentifiergetInstance(ASN1TaggedObject obj, boolean explicit)
return an Object Identifier from a tagged object.
inthashCode()
StringtoString()

Constructor Detail

DERObjectIdentifier

public DERObjectIdentifier(String identifier)

Method Detail

getId

public String getId()

getInstance

public static DERObjectIdentifier getInstance(Object obj)
return an OID from the passed in object

Throws: IllegalArgumentException if the object cannot be converted.

getInstance

public static DERObjectIdentifier getInstance(ASN1TaggedObject obj, boolean explicit)
return an Object Identifier from a tagged object.

Parameters: obj the tagged object holding the object we want explicit true if the object is meant to be explicitly tagged false otherwise.

Throws: IllegalArgumentException if the tagged object cannot be converted.

hashCode

public int hashCode()

toString

public String toString()