Class ObjectIdentifier

java.lang.Object
org.asnlab.asndt.runtime.value.ObjectIdentifier

public class ObjectIdentifier extends Object
Immutable representation of an ASN.1 OBJECT IDENTIFIER, which is equivalent to a integer array.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ObjectIdentifier(int[] ids)
    Constructs an ObjectIdentifier object from a integer array which represent its components.
    Constructs an ObjectIdentifier object from a string representation of its integer components.
  • Method Summary

    Modifier and Type
    Method
    Description
    append(int[] ids)
    This method appends object identifier components onto the existing value and return the new object identifier.
    This method appends an object identifier value onto the existing value and return the new object identifier.
    boolean
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • ids

      public int[] ids
  • Constructor Details

    • ObjectIdentifier

      public ObjectIdentifier(String oid)
      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

      public ObjectIdentifier append(ObjectIdentifier another)
      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

      public ObjectIdentifier append(int[] ids)
      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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object