Package org.ldaptive.asn1
Class AbstractDERType
- java.lang.Object
-
- org.ldaptive.asn1.AbstractDERType
-
- Direct Known Subclasses:
BooleanType
,ConstructedDEREncoder
,ContextType
,IntegerType
,NullType
,OctetStringType
,OidType
,UuidType
public abstract class AbstractDERType extends Object
Provides functionality common to DER types implementations.
-
-
Field Summary
Fields Modifier and Type Field Description private int
derTag
Constructed tag.private static int
SHORT_FORM_INT_LENGTH
Length of short form integers.
-
Constructor Summary
Constructors Constructor Description AbstractDERType(DERTag tag)
Creates a new abstract der type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
encode(byte[]... items)
DER encodes the supplied items with the tag associated with this type.
-
-
-
Field Detail
-
SHORT_FORM_INT_LENGTH
private static final int SHORT_FORM_INT_LENGTH
Length of short form integers.- See Also:
- Constant Field Values
-
derTag
private final int derTag
Constructed tag.
-
-
Constructor Detail
-
AbstractDERType
public AbstractDERType(DERTag tag)
Creates a new abstract der type.- Parameters:
tag
- to encode for this type
-
-