public class X509SigningIdentity extends X509Identity implements SigningIdentity
Constructor and Description |
---|
X509SigningIdentity(org.hyperledger.fabric.sdk.security.CryptoSuite cryptoSuite,
User user) |
Modifier and Type | Method and Description |
---|---|
byte[] |
sign(byte[] msg)
Sings a message with the secret key and the corresponding certificate
|
boolean |
verifySignature(byte[] msg,
byte[] sig)
Verifies a signature on a message
|
createSerializedIdentity
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSerializedIdentity
public X509SigningIdentity(org.hyperledger.fabric.sdk.security.CryptoSuite cryptoSuite, User user)
public byte[] sign(byte[] msg) throws CryptoException
SigningIdentity
sign
in interface SigningIdentity
CryptoException
public boolean verifySignature(byte[] msg, byte[] sig) throws CryptoException
SigningIdentity
verifySignature
in interface SigningIdentity
CryptoException
Copyright © 2020. All rights reserved.