Bouncy Castle Cryptography Library 1.48

org.bouncycastle.asn1
Class DERObjectIdentifier

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Object
      extended by org.bouncycastle.asn1.ASN1Primitive
          extended by org.bouncycastle.asn1.DERObjectIdentifier
All Implemented Interfaces:
ASN1Encodable
Direct Known Subclasses:
ASN1ObjectIdentifier

public class DERObjectIdentifier
extends ASN1Primitive


Constructor Summary
DERObjectIdentifier(java.lang.String identifier)
           
 
Method Summary
protected  byte[] getBody()
           
 java.lang.String getId()
           
static ASN1ObjectIdentifier getInstance(ASN1TaggedObject obj, boolean explicit)
          return an Object Identifier from a tagged object.
static ASN1ObjectIdentifier getInstance(java.lang.Object obj)
          return an OID from the passed in object
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.bouncycastle.asn1.ASN1Primitive
equals, fromByteArray, toASN1Primitive
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DERObjectIdentifier

public DERObjectIdentifier(java.lang.String identifier)
Method Detail

getInstance

public static ASN1ObjectIdentifier getInstance(java.lang.Object obj)
return an OID from the passed in object

Throws:
java.lang.IllegalArgumentException - if the object cannot be converted.

getInstance

public static ASN1ObjectIdentifier 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:
java.lang.IllegalArgumentException - if the tagged object cannot be converted.

getId

public java.lang.String getId()

getBody

protected byte[] getBody()

hashCode

public int hashCode()
Specified by:
hashCode in class ASN1Primitive

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Bouncy Castle Cryptography Library 1.48