public class KeyAgentIdentity extends Object implements PublicKeyIdentity
SshAgent
to generate the identity signatureConstructor 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 PublicKeyIdentity
PublicKey
identity valuepublic String getComment()
public byte[] sign(byte[] data) throws Exception
PublicKeyIdentity
sign
in interface PublicKeyIdentity
data
- Data to signException
- If failed to sign the dataCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.