public class DERObjectIdentifier extends ASN1Primitive
Constructor and Description |
---|
DERObjectIdentifier(java.lang.String identifier)
Deprecated.
use ASN1ObjectIdentifier constructor.
|
Modifier and Type | Method and Description |
---|---|
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() |
equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
public DERObjectIdentifier(java.lang.String identifier)
public static ASN1ObjectIdentifier getInstance(java.lang.Object obj)
java.lang.IllegalArgumentException
- if the object cannot be converted.public static ASN1ObjectIdentifier getInstance(ASN1TaggedObject obj, boolean explicit)
obj
- the tagged object holding the object we wantexplicit
- true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException
- if the tagged object cannot
be converted.public java.lang.String getId()
protected byte[] getBody()
public int hashCode()
hashCode
in class ASN1Primitive
public java.lang.String toString()
toString
in class java.lang.Object