public abstract class AbstractDERType extends Object
| Modifier and Type | Field and Description |
|---|---|
private int |
derTag
Constructed tag.
|
private static int |
SHORT_FORM_INT_LENGTH
Length of short form integers.
|
| Constructor and Description |
|---|
AbstractDERType(DERTag tag)
Creates a new abstract der type.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
encode(byte[]... items)
DER encode the supplied items with the tag associated with this type.
|
static byte[] |
readBuffer(ByteBuffer encoded)
Returns a byte array containing the bytes from
Buffer.limit() to Buffer.position(). |
private static final int SHORT_FORM_INT_LENGTH
private final int derTag
public AbstractDERType(DERTag tag)
tag - to encode for this typeprotected byte[] encode(byte[]... items)
items - to encodepublic static byte[] readBuffer(ByteBuffer encoded)
Buffer.limit() to Buffer.position().encoded - to read bytes fromCopyright © 2003-2019 Virginia Tech. All Rights Reserved.