public class BERProcessor extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
constructed
True if this is a structure for a constructed encoding.
|
byte |
tag
The tag type.
|
Constructor and Description |
---|
BERProcessor(byte[] buffer,
int offset,
int len)
Constructs a BERProcessor to operate on the passed buffer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
endOfSequence() |
byte[] |
getBytes()
Get a copy of the bytes in the content of the current structure.
|
BigInteger |
getIntValue()
Gets the content from the current structure as an int.
|
int[] |
getObjId()
Gets the content from the current structure as an object id (int[]).
|
String |
getString()
Gets the content from the current structure as a String.
|
void |
processStructure()
Parse the structure found at the current
offset into buffer . |
BERProcessor |
stepInto()
Returns a BERProcessor for the content of the current structure.
|
void |
stepOver() |
String |
toString()
Returns a String representation of the current BER structure.
|
public boolean constructed
public byte tag
public BERProcessor(byte[] buffer, int offset, int len) throws SignatureException
buffer
- the buffer containing the BER structures.offset
- the offset into buffer
to the start of the first structure.len
- the length of the BER structure.SignatureException
public void processStructure() throws SignatureException
offset
into buffer
.
Most methods, constructor, and stepinto, will call this method automatically. If
offset
is modified outside of those methods, this method will need to
be invoked.SignatureException
public String toString()
toString
in class Object
Object.toString()
public BERProcessor stepInto() throws SignatureException
SignatureException
public void stepOver() throws SignatureException
SignatureException
public boolean endOfSequence()
public String getString()
public BigInteger getIntValue()
public int[] getObjId()
public byte[] getBytes()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.