org.mozilla.jss.asn1
public class OBJECT_IDENTIFIER extends Object implements ASN1Value
Nested Class Summary | |
---|---|
static class | OBJECT_IDENTIFIER.Template |
Constructor Summary | |
---|---|
OBJECT_IDENTIFIER(long[] numbers)
Creates an OBJECT_IDENTIFIER from an array of longs, which constitute
the numbers that make up the OBJECT IDENTIFIER. | |
OBJECT_IDENTIFIER(String dottedOID)
Creates an OBJECT_IDENTIFIER from a String version. |
Method Summary | |
---|---|
void | encode(OutputStream ostream) |
void | encode(Tag implicitTag, OutputStream ostream) |
boolean | equals(Object obj) |
long[] | getNumbers() |
Tag | getTag() |
static OBJECT_IDENTIFIER.Template | getTemplate() |
int | hashCode() |
OBJECT_IDENTIFIER | subBranch(long num)
Creates a new OBJECT_IDENTIFIER that is a sub-branch of this one.
|
OBJECT_IDENTIFIER | subBranch(long[] newNums)
Creates a new OBJECT_IDENTIFIER that is a sub-branch of this one.
|
String | toString() |
3.2.456.53.23.64
".
Throws: NumberFormatException If the given string cannot be parsed into an OID.
OBJECT_IDENTIFIER oid
has the value
{ 1 3 5 6 },
then calling oid.subBranch(4)
would return a new
OBJECT_IDENTIFIER with the value { 1 3 5 6 4 }.OBJECT_IDENTIFIER oid
has the value
{ 1 3 5 6 },
then calling oid.subBranch(new long[]{ 4, 3})
would return a new
OBJECT_IDENTIFIER with the value { 1 3 5 6 4 3}.