Package org.asnlab.asndt.runtime.value
Class ObjectIdentifier
java.lang.Object
org.asnlab.asndt.runtime.value.ObjectIdentifier
Immutable representation of an ASN.1 OBJECT IDENTIFIER, which is equivalent to a
integer array.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionObjectIdentifier
(int[] ids) Constructs an ObjectIdentifier object from a integer array which represent its components.ObjectIdentifier
(String oid) Constructs an ObjectIdentifier object from a string representation of its integer components. -
Method Summary
Modifier and TypeMethodDescriptionappend
(int[] ids) This method appends object identifier components onto the existing value and return the new object identifier.append
(ObjectIdentifier another) This method appends an object identifier value onto the existing value and return the new object identifier.boolean
int
hashCode()
toString()
-
Field Details
-
ids
public int[] ids
-
-
Constructor Details
-
ObjectIdentifier
Constructs an ObjectIdentifier object from a string representation of its integer components. Example: { 1 3 5 6 2 1 6 } or 1.3.5.6.2.1.6 -
ObjectIdentifier
public ObjectIdentifier(int[] ids) Constructs an ObjectIdentifier object from a integer array which represent its components.
-
-
Method Details
-
append
This method appends an object identifier value onto the existing value and return the new object identifier.- Parameters:
another
- Another object identifier to append- Returns:
- The new appended object identifier
-
append
This method appends object identifier components onto the existing value and return the new object identifier.- Parameters:
ids
- Object identifier components to append- Returns:
- The new appended object identifier
-
hashCode
public int hashCode() -
equals
-
toString
-