| java.lang.Object org.apache.harmony.security.asn1.ASN1Type
All known Subclasses: org.apache.harmony.jndi.provider.ldap.asn1.ASN1LdapFilter, org.apache.harmony.security.asn1.ASN1Choice, org.apache.harmony.security.asn1.ASN1Primitive, org.apache.harmony.security.asn1.ASN1Constructured, org.apache.harmony.security.asn1.ASN1Implicit, org.apache.harmony.security.asn1.ASN1StringType, org.apache.harmony.security.asn1.ASN1Any,
ASN1Type | abstract public class ASN1Type implements ASN1Constants(Code) | | This abstract class is the super class for all ASN.1 types
See Also: http://asn1.elibel.tm.fr/en/standards/index.htm |
Field Summary | |
final public int | constrId Integer representation of constructed identifier. | final public int | id Integer representation of primitive identifier. |
Constructor Summary | |
public | ASN1Type(int tagNumber) Constructs a primitive, universal ASN.1 type. | public | ASN1Type(int tagClass, int tagNumber) Constructs an ASN.1 type.
Parameters: tagClass - - tag class. |
constrId | final public int constrId(Code) | | Integer representation of constructed identifier.
|
id | final public int id(Code) | | Integer representation of primitive identifier.
|
ASN1Type | public ASN1Type(int tagNumber)(Code) | | Constructs a primitive, universal ASN.1 type.
Parameters: tagNumber - - ASN.1 tag number throws: IllegalArgumentException - - if tagNumber is invalid |
ASN1Type | public ASN1Type(int tagClass, int tagNumber)(Code) | | Constructs an ASN.1 type.
Parameters: tagClass - - tag class. MUST beCLASS_UNIVERSAL, CLASS_APPLICATION, CLASS_CONTEXTSPECIFIC, CLASS_PRIVATE Parameters: isConstructed - - is ASN.1 type is a constructed type. Parameters: tagNumber - - ASN.1 tag number. throws: IllegalArgumentException - - if tagClass or tagNumber is invalid |
checkTag | abstract public boolean checkTag(int identifier)(Code) | | Tests provided identifier.
Parameters: identifier - -identifier to be verified - true if identifier is associated with this ASN.1 type,otherwise false |
encodeASN | abstract public void encodeASN(BerOutputStream out)(Code) | | Encodes ASN.1 type.
Parameters: out - - BER output stream |
getDecodedObject | protected Object getDecodedObject(BerInputStream in) throws IOException(Code) | | Creates decoded object.
Derived classes should override this method to provide creation for a
selected class of objects during decoding.
The default implementation returns an object created by decoding stream.
-input stream - created object |
|
|