Package org.apache.kerby.asn1.type
Class Asn1Enumerated<T extends EnumType>
java.lang.Object
org.apache.kerby.asn1.type.Asn1Object
org.apache.kerby.asn1.type.Asn1Encodeable
org.apache.kerby.asn1.type.AbstractAsn1Type<T>
org.apache.kerby.asn1.type.Asn1Simple<T>
org.apache.kerby.asn1.type.Asn1Enumerated<T>
- All Implemented Interfaces:
Asn1Type
The ASN1 enumerated type
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.kerby.asn1.type.Asn1Type
Asn1Type.EncodingType -
Field Summary
Fields inherited from class org.apache.kerby.asn1.type.Asn1Encodeable
bodyLength, outerEncodeable -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, generally for decoding as a containerAsn1Enumerated(T value) Constructor with a value, generally for encoding of the value -
Method Summary
Methods inherited from class org.apache.kerby.asn1.type.Asn1Simple
createSimple, createSimple, decodeBody, encodeBody, encodeBody, encodingBodyLength, getBytes, isDefinitiveLength, isSimple, isSimple, isSimple, setBytes, toStringMethods inherited from class org.apache.kerby.asn1.type.AbstractAsn1Type
getValue, setValueMethods inherited from class org.apache.kerby.asn1.type.Asn1Encodeable
decode, decode, decode, encode, encode, encodingHeaderLength, encodingLength, getBodyLength, getHeaderLength, isBER, isCER, isDER, isImplicit, isPrimitive, resetBodyLength, taggedDecode, taggedDecode, taggedDecode, taggedEncode, taggedEncode, taggedEncodingLength, useBER, useCER, useDefinitiveLength, useDER, useImplicit, usePrimitiveMethods inherited from class org.apache.kerby.asn1.type.Asn1Object
isAppSpecific, isCollection, isContextSpecific, isEOC, isNull, isSimple, isTagSpecific, isUniversal, simpleInfo, tag, tagFlags, tagNo
-
Constructor Details
-
Asn1Enumerated
public Asn1Enumerated()Default constructor, generally for decoding as a container -
Asn1Enumerated
Constructor with a value, generally for encoding of the value- Parameters:
value- The boolean value
-
-
Method Details
-
toBytes
protected void toBytes()- Overrides:
toBytesin classAsn1Simple<T extends EnumType>
-
toValue
- Overrides:
toValuein classAsn1Simple<T extends EnumType>- Throws:
IOException
-
getAllEnumValues
-