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 DEREncodedInputStreaminstatic byteTAG_BIT_STRINGstatic byteTAG_GENERALIZED_TIMEstatic byteTAG_INTEGERstatic byteTAG_NULLstatic byteTAG_OBJECT_IDstatic byteTAG_SEQUENCEstatic byteTAG_SETstatic byteTAG_UTC_TIMEbytevalueTag
-
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 booleanareEmpty()voidencode(ByteArrayOutputStream stream)BigIntegergetBigInteger()byte[]getBitString()bytegetValueTag()booleanisConstructed()booleanisContextSpecific(byte tag)voidputLen(ByteArrayOutputStream out, int length)byte[]toByteArray()DEREncodedInputStreamtoDEREncodedInputStream()
-
-
-
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)
-
-