Package org.verapdf.pdfa.parsers.pkcs7
Class DEREncodedValue
java.lang.Object
org.verapdf.pdfa.parsers.pkcs7.DEREncodedValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DEREncodedInputStreamstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytebyte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareEmpty()voidencode(ByteArrayOutputStream stream) byte[]final bytebooleanbooleanisContextSpecific(byte tag) voidputLen(ByteArrayOutputStream out, int length) byte[]
-
Field Details
-
valueTag
public byte valueTag -
in
-
TAG_SEQUENCE
public static final byte TAG_SEQUENCE- See Also:
-
TAG_SET
public static final byte TAG_SET- See Also:
-
TAG_OBJECT_ID
public static final byte TAG_OBJECT_ID- See Also:
-
TAG_BIT_STRING
public static final byte TAG_BIT_STRING- See Also:
-
TAG_NULL
public static final byte TAG_NULL- See Also:
-
TAG_INTEGER
public static final byte TAG_INTEGER- See Also:
-
TAG_UTC_TIME
public static final byte TAG_UTC_TIME- See Also:
-
TAG_GENERALIZED_TIME
public static final byte TAG_GENERALIZED_TIME- See Also:
-
-
Constructor Details
-
DEREncodedValue
public DEREncodedValue(byte valueTag, byte[] bytes) -
DEREncodedValue
- Throws:
IOException
-
-
Method Details
-
areEmpty
public boolean areEmpty() -
getValueTag
public final byte getValueTag() -
getBitString
- Throws:
IOException
-
getBigInteger
- Throws:
IOException
-
isConstructed
public boolean isConstructed() -
isContextSpecific
public boolean isContextSpecific(byte tag) -
toDEREncodedInputStream
- Throws:
IOException
-
toByteArray
- Throws:
IOException
-
encode
- Throws:
IOException
-
putLen
-