public class KeyStore
extends java.lang.Object
| Constructor and Description |
|---|
KeyStore()
Creates a new KeyStore object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addKey(SshPrivateKey prvkey,
SshPublicKey pubkey,
java.lang.String description,
KeyConstraints cs) |
void |
addKeyStoreListener(KeyStoreListener listener) |
void |
deleteAllKeys() |
boolean |
deleteKey(SshPublicKey pubkey,
java.lang.String description) |
SshPublicKey |
elementAt(int i) |
java.lang.String |
getDescription(SshPublicKey key) |
KeyConstraints |
getKeyConstraints(SshPublicKey key) |
java.util.Map |
getPublicKeys() |
int |
indexOf(SshPublicKey key) |
boolean |
lock(java.lang.String password) |
byte[] |
performHashAndSign(SshPublicKey pubkey,
java.util.List forwardingNodes,
byte[] data) |
void |
removeKeyStoreListener(KeyStoreListener listener) |
int |
size() |
boolean |
unlock(java.lang.String password) |
public java.util.Map getPublicKeys()
public int indexOf(SshPublicKey key)
key - public SshPublicKey elementAt(int i)
i - public java.lang.String getDescription(SshPublicKey key)
key - public KeyConstraints getKeyConstraints(SshPublicKey key)
key - public int size()
public void addKeyStoreListener(KeyStoreListener listener)
listener - public void removeKeyStoreListener(KeyStoreListener listener)
listener - public boolean addKey(SshPrivateKey prvkey, SshPublicKey pubkey, java.lang.String description, KeyConstraints cs) throws java.io.IOException
prvkey - pubkey - description - cs - java.io.IOExceptionpublic void deleteAllKeys()
public byte[] performHashAndSign(SshPublicKey pubkey, java.util.List forwardingNodes, byte[] data) throws KeyTimeoutException, InvalidSshKeyException, InvalidSshKeySignatureException
pubkey - forwardingNodes - data - KeyTimeoutExceptionInvalidSshKeyExceptionInvalidSshKeySignatureExceptionpublic boolean deleteKey(SshPublicKey pubkey, java.lang.String description) throws java.io.IOException
pubkey - description - java.io.IOExceptionpublic boolean lock(java.lang.String password)
throws java.io.IOException
password - java.io.IOExceptionpublic boolean unlock(java.lang.String password)
throws java.io.IOException
password - java.io.IOExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.