com.sshtools.j2ssh.agent
Class KeyStore
java.lang.Object
com.sshtools.j2ssh.agent.KeyStore
public class KeyStore
- extends java.lang.Object
- Version:
- $Revision: 1.14 $
- Author:
- $author$
Constructor Summary |
KeyStore()
Creates a new KeyStore object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStore
public KeyStore()
- Creates a new KeyStore object.
getPublicKeys
public java.util.Map getPublicKeys()
- Returns:
indexOf
public int indexOf(SshPublicKey key)
- Parameters:
key
-
- Returns:
elementAt
public SshPublicKey elementAt(int i)
- Parameters:
i
-
- Returns:
getDescription
public java.lang.String getDescription(SshPublicKey key)
- Parameters:
key
-
- Returns:
getKeyConstraints
public KeyConstraints getKeyConstraints(SshPublicKey key)
- Parameters:
key
-
- Returns:
size
public int size()
- Returns:
addKeyStoreListener
public void addKeyStoreListener(KeyStoreListener listener)
- Parameters:
listener
-
removeKeyStoreListener
public void removeKeyStoreListener(KeyStoreListener listener)
- Parameters:
listener
-
addKey
public boolean addKey(SshPrivateKey prvkey,
SshPublicKey pubkey,
java.lang.String description,
KeyConstraints cs)
throws java.io.IOException
- Parameters:
prvkey
- pubkey
- description
- cs
-
- Returns:
-
- Throws:
java.io.IOException
deleteAllKeys
public void deleteAllKeys()
performHashAndSign
public byte[] performHashAndSign(SshPublicKey pubkey,
java.util.List forwardingNodes,
byte[] data)
throws KeyTimeoutException,
InvalidSshKeyException,
InvalidSshKeySignatureException
- Parameters:
pubkey
- forwardingNodes
- data
-
- Returns:
-
- Throws:
KeyTimeoutException
InvalidSshKeyException
InvalidSshKeySignatureException
deleteKey
public boolean deleteKey(SshPublicKey pubkey,
java.lang.String description)
throws java.io.IOException
- Parameters:
pubkey
- description
-
- Returns:
-
- Throws:
java.io.IOException
lock
public boolean lock(java.lang.String password)
throws java.io.IOException
- Parameters:
password
-
- Returns:
-
- Throws:
java.io.IOException
unlock
public boolean unlock(java.lang.String password)
throws java.io.IOException
- Parameters:
password
-
- Returns:
-
- Throws:
java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.