Package org.apache.kerby.asn1.type
Class Asn1Object
java.lang.Object
org.apache.kerby.asn1.type.Asn1Object
- Direct Known Subclasses:
Asn1Encodeable,Asn1ParseResult
An ASN1 object has a tag.
-
Constructor Summary
ConstructorsConstructorDescriptionAsn1Object(int tag) Constructor with a tagAsn1Object(Tag tag) Constructor with a tagAsn1Object(UniversalTag tag) Default constructor with an universal tag. -
Method Summary
-
Constructor Details
-
Asn1Object
Constructor with a tag- Parameters:
tag- The tag
-
Asn1Object
Default constructor with an universal tag.- Parameters:
tag- the tag
-
Asn1Object
public Asn1Object(int tag) Constructor with a tag- Parameters:
tag- The tag
-
-
Method Details
-
tag
-
tagFlags
public int tagFlags() -
tagNo
public int tagNo() -
usePrimitive
public void usePrimitive(boolean isPrimitive) -
isPrimitive
public boolean isPrimitive() -
isUniversal
public boolean isUniversal() -
isAppSpecific
public boolean isAppSpecific() -
isContextSpecific
public boolean isContextSpecific() -
isTagSpecific
public boolean isTagSpecific() -
isEOC
public boolean isEOC() -
isNull
public boolean isNull() -
isSimple
public boolean isSimple() -
isCollection
public boolean isCollection() -
getHeaderLength
- Throws:
IOException
-
getBodyLength
- Throws:
IOException
-
simpleInfo
-