public class KeyPairIdentity extends Object implements PublicKeyIdentity
KeyPair to generate the identity signature| Constructor and Description |
|---|
KeyPairIdentity(SignatureFactoriesManager primary,
SignatureFactoriesManager secondary,
KeyPair pair) |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getPublicKey() |
byte[] |
sign(byte[] data)
Proves the public key identity by signing the given data
|
String |
toString() |
public KeyPairIdentity(SignatureFactoriesManager primary, SignatureFactoriesManager secondary, KeyPair pair)
public PublicKey getPublicKey()
getPublicKey in interface PublicKeyIdentityPublicKey identity valuepublic 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.