public class KeyAgentIdentity extends Object implements PublicKeyIdentity
SshAgent to generate the identity signature| Constructor and Description |
|---|
KeyAgentIdentity(SshAgent agent,
PublicKey key,
String comment) |
| Modifier and Type | Method and Description |
|---|---|
String |
getComment() |
PublicKey |
getPublicKey() |
byte[] |
sign(byte[] data)
Proves the public key identity by signing the given data
|
String |
toString() |
public PublicKey getPublicKey()
getPublicKey in interface PublicKeyIdentityPublicKey identity valuepublic String getComment()
public byte[] sign(byte[] data)
throws Exception
PublicKeyIdentitysign in interface PublicKeyIdentitydata - Data to signException - If failed to sign the dataCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.