The ASN.1 OBJECT IDENTIFIER type is converted to a Java class that extends the Asn1ObjectIdentifier run-time class. This base class encapsulates the following public member variable:
public int[] value;
The number of subidentifiers to be encoded or that were decoded is specified in the built-in length component of the array object (i.e., value.length).
The following shows the basic mapping from ASN.1 type to Java class definition:
ASN.1 Production
<name> ::= OBJECT IDENTIFIER
Generated Java class
public class <name> extends Asn1ObjectIdentifier { public <name> () { super(); } public <name> (int[] value_) { super (value_); } }
This shows the class generated for a simple OBJECT IDENTIFIER assignment. If a tagged or constrained type is specified, specific encode and decode methods will be generated as well.