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.IOException
public void deleteAllKeys()
public byte[] performHashAndSign(SshPublicKey pubkey, java.util.List forwardingNodes, byte[] data) throws KeyTimeoutException, InvalidSshKeyException, InvalidSshKeySignatureException
pubkey
- forwardingNodes
- data
- KeyTimeoutException
InvalidSshKeyException
InvalidSshKeySignatureException
public boolean deleteKey(SshPublicKey pubkey, java.lang.String description) throws java.io.IOException
pubkey
- description
- java.io.IOException
public boolean lock(java.lang.String password) throws java.io.IOException
password
- java.io.IOException
public boolean unlock(java.lang.String password) throws java.io.IOException
password
- java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.