Package com.oss.asn1

Class RelativeObjectIdentifier

All Implemented Interfaces:
Serializable, Cloneable

public class RelativeObjectIdentifier extends AbstractObjectIdentifier
The RelativeObjectIdentifier class represents the ASN.1 RELATIVE-OID type.C
ASN.1/Java 6.0
See Also:
  • Constructor Details

    • RelativeObjectIdentifier

      public RelativeObjectIdentifier()
      The default constructor.
    • RelativeObjectIdentifier

      public RelativeObjectIdentifier(String valueNotation) throws BadObjectIdentifierException
      Construct from a String. The String can contain ASN.1 Value Notation in the format: "{ 1 2 3 4 5 6 7 }" or in the format "". With the first format, the blanks after the '{' and before the '}' are optional. If the string has some extra characters before the '{' or after the '}', they are simply ignored.
      valueNotation - the value to set this object's value to.
      BadObjectIdentifierException - thrown if the String parameter does not contain valid ASN.1 Value Notation
    • RelativeObjectIdentifier

      public RelativeObjectIdentifier(byte[] value)
      Construct from a byte array.
      value - the byte array value to set 'this' object to.
  • Method Details

    • equalTo

      public final boolean equalTo(RelativeObjectIdentifier that)
      Compare 'this' object to another ObjectIdentifier object to see if their contents are the same.
      that - the ObjectIdentifier object to compare 'this' object to.
      true if contents of both objects are the same.
    • clone

      public RelativeObjectIdentifier clone()
      Clone 'this' object.
      clone in class AbstractObjectIdentifier
      deep copy of 'this' object.
    • getTypeName

      public String getTypeName()
      Returns the name of ASN.1 type this java class represents.
      getTypeName in class AbstractData
      the name of the ASN.1 type.