public interface AuthAgentCallback
| Modifier and Type | Method and Description |
|---|---|
boolean |
addIdentity(java.security.KeyPair pair,
java.lang.String comment,
boolean confirmUse,
int lifetime) |
java.security.KeyPair |
getKeyPair(byte[] publicKey) |
boolean |
isAgentLocked() |
boolean |
removeAllIdentities() |
boolean |
removeIdentity(byte[] publicKey) |
boolean |
requestAgentUnlock(java.lang.String unlockPassphrase) |
java.util.Map<java.lang.String,byte[]> |
retrieveIdentities() |
boolean |
setAgentLock(java.lang.String lockPassphrase) |
java.util.Map<java.lang.String,byte[]> retrieveIdentities()
boolean addIdentity(java.security.KeyPair pair,
java.lang.String comment,
boolean confirmUse,
int lifetime)
pair - A RSAPrivateKey, ECPrivateKey, or
DSAPrivateKey containing a DSA, EC, or RSA private
and corresponding PublicKey.comment - comment associated with this keyconfirmUse - whether to prompt before using this keylifetime - lifetime in seconds for key to be rememberedboolean removeIdentity(byte[] publicKey)
publicKey - byte blob containing the OpenSSH-format encoded public keyboolean removeAllIdentities()
java.security.KeyPair getKeyPair(byte[] publicKey)
publicKey - byte blob containing the OpenSSH-format encoded public keyRSAPrivateKey or DSAPrivateKey
containing a DSA or RSA private key of
the user in Trilead object format.boolean isAgentLocked()
boolean setAgentLock(java.lang.String lockPassphrase)
lockPassphrase - boolean requestAgentUnlock(java.lang.String unlockPassphrase)
unlockPassphrase -