Package com.oss.asn1
Class RelativeObjectIdentifier
java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.AbstractObjectIdentifier
com.oss.asn1.RelativeObjectIdentifier
- All Implemented Interfaces:
Serializable
,Cloneable
The RelativeObjectIdentifier class represents the ASN.1 RELATIVE-OID type.C
- Since:
- ASN.1/Java 1.0-beta A
- See Also:
-
Field Summary
Fields inherited from class com.oss.asn1.AbstractData
EQUALS, GREATER_THAN, LESS_THAN
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.RelativeObjectIdentifier
(byte[] value) Construct from a byte array.RelativeObjectIdentifier
(String valueNotation) Construct from a String. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Compare 'this' object to another ObjectIdentifier object to see if their contents are the same.Methods inherited from class com.oss.asn1.AbstractObjectIdentifier
byteArrayValue, clone, delete, hashCode, setValue
Methods inherited from class com.oss.asn1.AbstractData
equals, isEncodable, isPDU, isValid, toString, toString
-
Constructor Details
-
RelativeObjectIdentifier
public RelativeObjectIdentifier()The default constructor. -
RelativeObjectIdentifier
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"1.2.3.4.5.6.7"
. 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.- Parameters:
valueNotation
- the value to set this object's value to.- Throws:
BadObjectIdentifierException
- thrown if the String parameter does not contain valid ASN.1 Value Notation
-
RelativeObjectIdentifier
public RelativeObjectIdentifier(byte[] value) Construct from a byte array.- Parameters:
value
- the byte array value to set 'this' object to.
-
-
Method Details
-
equalTo
Compare 'this' object to another ObjectIdentifier object to see if their contents are the same.- Parameters:
that
- the ObjectIdentifier object to compare 'this' object to.- Returns:
- true if contents of both objects are the same.
-