| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private String | |
| private static final long | |
| private static final int | MAX_CONTENTS_LENGTH
Implementation limit on the length of the contents octets for an Object Identifier. |
| private static final int | |
| private static final ConcurrentMap | |
| pack-priv static final ASN1UniversalType |
| Access | Constructor and Description |
|---|---|
| public | ASN1ObjectIdentifier(String
a string representation of an OID. identifier)Create an OID based on the passed in String. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | asn1Equals(ASN1Primitive other)
Implements abstract org. Equality (similarity) comparison for two ASN1Primitive objects. |
| public ASN1ObjectIdentifier | |
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static ASN1ObjectIdentifier | |
| pack-priv void | encode(ASN1OutputStream out, boolean withTag)
Implements abstract org.
|
| pack-priv boolean | encodeConstructed()
Implements abstract org. Return true if this objected is a CONSTRUCTED one, false otherwise. |
| pack-priv int | encodedLength(boolean withTag)
Implements abstract org.
|
| public static ASN1ObjectIdentifier | |
| public synchronized String | Returns: the string representation of the OID carried by this object.Return the OID as a string. |
| public static ASN1ObjectIdentifier | Returns: an ASN1ObjectIdentifier instance, or null.an ASN1ObjectIdentifier or an object that can be converted into one. obj)Return an OID from the passed in object |
| public static ASN1ObjectIdentifier | Returns: an ASN1ObjectIdentifier instance, or null.the tagged object holding the object we want taggedObject, boolean true if the object is meant to be explicitly
tagged false otherwise. explicit)Return an OBJECT IDENTIFIER from a tagged object. |
| public int | hashCode()
Implements abstract org. Returns a hash code value for this object. |
| public ASN1ObjectIdentifier | Returns: a reference to the identifier in the pool.Intern will return a reference to a pooled version of this object, unless it is not present in which case intern will add it. |
| private static boolean | |
| public boolean | Returns: true if the branch is on the passed in stem, false otherwise.the arc or branch that is a possible parent. stem)Return true if this oid is an extension of the passed in branch - stem. |
| private static String | |
| private static byte[] | |
| public String | |
| public static ASN1ObjectIdentifier |
| contents | back to summary |
|---|---|
| private final byte[] contents | |
| identifier | back to summary |
|---|---|
| private String identifier | |
| LONG_LIMIT | back to summary |
|---|---|
| private static final long LONG_LIMIT | |
| MAX_CONTENTS_LENGTH | back to summary |
|---|---|
| private static final int MAX_CONTENTS_LENGTH Implementation limit on the length of the contents octets for an Object Identifier. We adopt the same value used by OpenJDK. In theory there is no limit on the length of the contents, or the number of subidentifiers, or the length of individual subidentifiers. In practice, supporting arbitrary lengths can lead to issues, e.g. denial-of-service attacks when attempting to convert a parsed value to its (decimal) string form. | |
| MAX_IDENTIFIER_LENGTH | back to summary |
|---|---|
| private static final int MAX_IDENTIFIER_LENGTH | |
| pool | back to summary |
|---|---|
| private static final ConcurrentMap<ASN1ObjectIdentifier. | |
| TYPE | back to summary |
|---|---|
| pack-priv static final ASN1UniversalType TYPE | |
| ASN1ObjectIdentifier | back to summary |
|---|---|
| public ASN1ObjectIdentifier(String identifier) Create an OID based on the passed in String.
| |
| ASN1ObjectIdentifier | back to summary |
|---|---|
| private ASN1ObjectIdentifier(byte[] contents, String identifier) | |
| asn1Equals | back to summary |
|---|---|
| pack-priv boolean asn1Equals(ASN1Primitive other) Implements abstract org. Doc from org. Equality (similarity) comparison for two ASN1Primitive objects. | |
| branch | back to summary |
|---|---|
| public ASN1ObjectIdentifier branch(String branchID) Return an OID that creates a branch under the current one.
| |
| checkContentsLength | back to summary |
|---|---|
| pack-priv static void checkContentsLength(int contentsLength) | |
| checkIdentifier | back to summary |
|---|---|
| pack-priv static void checkIdentifier(String identifier) | |
| createPrimitive | back to summary |
|---|---|
| pack-priv static ASN1ObjectIdentifier createPrimitive(byte[] contents, boolean clone) | |
| encode | back to summary |
|---|---|
| pack-priv void encode(ASN1OutputStream out, boolean withTag) throws IOException Implements abstract org. | |
| encodeConstructed | back to summary |
|---|---|
| pack-priv boolean encodeConstructed() Implements abstract org. Doc from org. Return true if this objected is a CONSTRUCTED one, false otherwise.
| |
| encodedLength | back to summary |
|---|---|
| pack-priv int encodedLength(boolean withTag) Implements abstract org. | |
| fromContents | back to summary |
|---|---|
| public static ASN1ObjectIdentifier fromContents(byte[] contents) | |
| getId | back to summary |
|---|---|
| public synchronized String getId() Return the OID as a string.
| |
| getInstance | back to summary |
|---|---|
| public static ASN1ObjectIdentifier getInstance(Object obj) Return an OID from the passed in object
| |
| getInstance | back to summary |
|---|---|
| public static ASN1ObjectIdentifier getInstance(ASN1TaggedObject taggedObject, boolean explicit) Return an OBJECT IDENTIFIER from a tagged object.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intern | back to summary |
|---|---|
| public ASN1ObjectIdentifier intern() Intern will return a reference to a pooled version of this object, unless it is not present in which case intern will add it. The pool is also used by the ASN.1 parsers to limit the number of duplicated OID objects in circulation.
| |
| isValidIdentifier | back to summary |
|---|---|
| private static boolean isValidIdentifier(String identifier) | |
| on | back to summary |
|---|---|
| public boolean on(ASN1ObjectIdentifier stem) Return true if this oid is an extension of the passed in branch - stem.
| |
| parseContents | back to summary |
|---|---|
| private static String parseContents(byte[] contents) | |
| parseIdentifier | back to summary |
|---|---|
| private static byte[] parseIdentifier(String identifier) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| tryFromID | back to summary |
|---|---|
| public static ASN1ObjectIdentifier tryFromID(String identifier) | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| contents | back to summary |
|---|---|
| private final byte[] contents | |
| key | back to summary |
|---|---|
| private final int key | |
| OidHandle | back to summary |
|---|---|
| pack-priv OidHandle(byte[] contents) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |