| java.lang.Object wim_data.Key
Key | class Key (Code) | | This class represents RSA key pair.
|
Constructor Summary | |
| Key(String label, int len, int pinIndex, boolean nonRepudiation, int id, short[] PublicPath, short[] PrivatePath, PIN[] PINs) Constructor. |
Method Summary | |
TLV | getPrivate(byte algorithmId) Returns TLV structure that represents private key. | TLV | getPublic() Returns TLV structure that represents public key. | void | init() Initializes the object. |
PrivatePath | short[] PrivatePath(Code) | | Path for private key.
|
PublicPath | short[] PublicPath(Code) | | Path for public key.
|
hash | byte[] hash(Code) | | Public key hash used to identify the keys.
|
id | int id(Code) | | Private key identifier.
|
keyLen | int keyLen(Code) | | Length of the key.
|
nonRepudiation | boolean nonRepudiation(Code) | | If true, this is non-repudiation key, otherwise - authentication
key.
|
pinId | int pinId(Code) | | ID of PIN that protects private key.
|
pinIndex | int pinIndex(Code) | | Index of PIN that protects private key.
|
Key | Key(String label, int len, int pinIndex, boolean nonRepudiation, int id, short[] PublicPath, short[] PrivatePath, PIN[] PINs)(Code) | | Constructor.
Parameters: label - private key label Parameters: len - length of key Parameters: pinIndex - pin index in PINs array Parameters: nonRepudiation - is it non-repudiation key? Parameters: id - private key identifier Parameters: PublicPath - path to file with public key Parameters: PrivatePath - path to file with private key Parameters: PINs - PIN objectd defined for this WIM |
getPrivate | TLV getPrivate(byte algorithmId)(Code) | | Returns TLV structure that represents private key.
Parameters: algorithmId - RSA algorithm identifier for this WIM TLV structure that represents private key |
getPublic | TLV getPublic()(Code) | | Returns TLV structure that represents public key.
TLV structure that represents private key |
|
|