public class PKCS15Provider.Path
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
VALUE_UNDEFINED
Undefined value.
|
Constructor and Description |
---|
PKCS15Provider.Path(byte[] path)
Builds a Path object without index and length (the path can be
absolute as well as relative).
|
PKCS15Provider.Path(byte[] path,
int index,
int length)
Builds a Path object with index and length (the path can be absolute
as well as relative).
|
Modifier and Type | Method and Description |
---|---|
byte[] |
encode()
Encodes this Path object according to DER (see ITU X.690 for
DER-Coding).
|
int |
getIndex()
Returns the index field of this Path object.
|
int |
getLength()
Returns the length field of this Path object.
|
byte[] |
getPath()
Returns the path field of this Path object.
|
boolean |
hasIndexLength()
Checks whether this Path object has an index and length fields.
|
public static final int VALUE_UNDEFINED
public PKCS15Provider.Path(byte[] path) throws java.lang.IllegalArgumentException
path
- the path as a byte array.java.lang.IllegalArgumentException
- if the path is not correct.public PKCS15Provider.Path(byte[] path, int index, int length) throws java.lang.IllegalArgumentException
path
- The path as a byte array.index
- The index value.length
- The length value.java.lang.IllegalArgumentException
- if the path is not correct.public byte[] getPath()
public boolean hasIndexLength()
public int getIndex()
public int getLength()
public byte[] encode()
SEEK for Android Copyright 2015, Giesecke & Devrient GmbH