codec.asn1
Class ASN1Enumerated
java.lang.Object
|
+--codec.asn1.ASN1AbstractType
|
+--codec.asn1.ASN1Integer
|
+--codec.asn1.ASN1Enumerated
- All Implemented Interfaces:
- ASN1Type, Cloneable, Externalizable, Serializable
- public class ASN1Enumerated
- extends ASN1Integer
Represents an ASN.1 ENUMERATED type. The corresponding Java type is
java.math.BigInteger. Note that at the moment there is no value checking
- Author:
- Markus Tak
- See Also:
- Serialized Form
| Methods inherited from class codec.asn1.ASN1AbstractType |
checkConstraints, getConstraint, getTagClass, isExplicit, isOptional, isType, readExternal, setConstraint, setExplicit, setOptional, writeExternal |
ASN1Enumerated
public ASN1Enumerated()
- Creates a new instance ready for parsing. The value of this instance is
set to 0.
ASN1Enumerated
public ASN1Enumerated(int n)
- Creates an instance with the given int value.
- Parameters:
n - The integer to initialize with.
ASN1Enumerated
public ASN1Enumerated(BigInteger val)
- Creates a new instance with the given BigInteger as its initial value.
- Parameters:
val - The value.
decode
public void decode(Decoder dec)
throws ASN1Exception,
IOException
- Overrides:
decode in class ASN1Integer
encode
public void encode(Encoder enc)
throws ASN1Exception,
IOException
- Overrides:
encode in class ASN1Integer
getTag
public int getTag()
- Description copied from class:
ASN1AbstractType
- Returns the corresponding ASN.1 tag.
- Overrides:
getTag in class ASN1Integer
- Following copied from class:
codec.asn1.ASN1AbstractType
- Returns:
- the corresponding ASN.1 tag
toString
public String toString()
- Overrides:
toString in class ASN1Integer
Copyright © Fraunhofer Gesellschaft. All Rights Reserved.