Package org.apache.kerby.asn1.type
Class Asn1Boolean
java.lang.Object
- All Implemented Interfaces:
Asn1Type
ASN1 Boolean type
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.kerby.asn1.type.Asn1Type
Asn1Type.EncodingType -
Field Summary
FieldsFields inherited from class org.apache.kerby.asn1.type.Asn1Encodeable
bodyLength, outerEncodeable -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, generally for decoding as a containerAsn1Boolean(Boolean value) Constructor with a value, generally for encoding of the value -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecodeBody(Asn1ParseResult parseResult) protected intprotected voidtoBytes()protected voidtoValue()Methods inherited from class org.apache.kerby.asn1.type.Asn1Simple
createSimple, createSimple, encodeBody, encodeBody, 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
-
Field Details
-
TRUE
-
FALSE
-
-
Constructor Details
-
Asn1Boolean
public Asn1Boolean()Default constructor, generally for decoding as a container -
Asn1Boolean
Constructor with a value, generally for encoding of the value- Parameters:
value- The boolean value
-
-
Method Details
-
encodingBodyLength
protected int encodingBodyLength()- Overrides:
encodingBodyLengthin classAsn1Simple<Boolean>
-
decodeBody
- Overrides:
decodeBodyin classAsn1Simple<Boolean>- Throws:
IOException
-
toBytes
protected void toBytes()- Overrides:
toBytesin classAsn1Simple<Boolean>
-
toValue
- Overrides:
toValuein classAsn1Simple<Boolean>- Throws:
IOException
-