Package org.verapdf.pdfa.parsers.pkcs7
Class DEREncodedValue
- java.lang.Object
-
- org.verapdf.pdfa.parsers.pkcs7.DEREncodedValue
-
public class DEREncodedValue extends Object
-
-
Field Summary
Fields Modifier and Type Field Description DEREncodedInputStream
in
static byte
TAG_BIT_STRING
static byte
TAG_GENERALIZED_TIME
static byte
TAG_INTEGER
static byte
TAG_NULL
static byte
TAG_OBJECT_ID
static byte
TAG_SEQUENCE
static byte
TAG_SET
static byte
TAG_UTC_TIME
byte
valueTag
-
Constructor Summary
Constructors Constructor Description DEREncodedValue(byte valueTag, byte[] bytes)
DEREncodedValue(InputBuffer in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areEmpty()
void
encode(ByteArrayOutputStream stream)
BigInteger
getBigInteger()
byte[]
getBitString()
byte
getValueTag()
boolean
isConstructed()
boolean
isContextSpecific(byte tag)
void
putLen(ByteArrayOutputStream out, int length)
byte[]
toByteArray()
DEREncodedInputStream
toDEREncodedInputStream()
-
-
-
Field Detail
-
valueTag
public byte valueTag
-
in
public final DEREncodedInputStream in
-
TAG_SEQUENCE
public static final byte TAG_SEQUENCE
- See Also:
- Constant Field Values
-
TAG_SET
public static final byte TAG_SET
- See Also:
- Constant Field Values
-
TAG_OBJECT_ID
public static final byte TAG_OBJECT_ID
- See Also:
- Constant Field Values
-
TAG_BIT_STRING
public static final byte TAG_BIT_STRING
- See Also:
- Constant Field Values
-
TAG_NULL
public static final byte TAG_NULL
- See Also:
- Constant Field Values
-
TAG_INTEGER
public static final byte TAG_INTEGER
- See Also:
- Constant Field Values
-
TAG_UTC_TIME
public static final byte TAG_UTC_TIME
- See Also:
- Constant Field Values
-
TAG_GENERALIZED_TIME
public static final byte TAG_GENERALIZED_TIME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DEREncodedValue
public DEREncodedValue(byte valueTag, byte[] bytes)
-
DEREncodedValue
public DEREncodedValue(InputBuffer in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
areEmpty
public boolean areEmpty()
-
getValueTag
public final byte getValueTag()
-
getBitString
public byte[] getBitString() throws IOException
- Throws:
IOException
-
getBigInteger
public BigInteger getBigInteger() throws IOException
- Throws:
IOException
-
isConstructed
public boolean isConstructed()
-
isContextSpecific
public boolean isContextSpecific(byte tag)
-
toDEREncodedInputStream
public DEREncodedInputStream toDEREncodedInputStream() throws IOException
- Throws:
IOException
-
toByteArray
public byte[] toByteArray() throws IOException
- Throws:
IOException
-
encode
public void encode(ByteArrayOutputStream stream) throws IOException
- Throws:
IOException
-
putLen
public void putLen(ByteArrayOutputStream out, int length)
-
-