public interface StateAwareSignature
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
PrivateKey |
getUpdatedPrivateKey()
Return the current version of the private key with the updated state.
|
void |
initSign(PrivateKey privateKey) |
void |
initSign(PrivateKey privateKey,
SecureRandom random) |
void |
initVerify(Certificate certificate) |
void |
initVerify(PublicKey publicKey) |
boolean |
isSigningCapable()
Return true if this Signature object can be used for signing.
|
byte[] |
sign() |
int |
sign(byte[] outbuf,
int offset,
int len) |
void |
update(byte b) |
void |
update(byte[] data) |
void |
update(byte[] data,
int off,
int len) |
void |
update(ByteBuffer data) |
boolean |
verify(byte[] signature) |
boolean |
verify(byte[] signature,
int offset,
int length) |
void initVerify(PublicKey publicKey) throws InvalidKeyException
InvalidKeyException
void initVerify(Certificate certificate) throws InvalidKeyException
InvalidKeyException
void initSign(PrivateKey privateKey) throws InvalidKeyException
InvalidKeyException
void initSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException
InvalidKeyException
byte[] sign() throws SignatureException
SignatureException
int sign(byte[] outbuf, int offset, int len) throws SignatureException
SignatureException
boolean verify(byte[] signature) throws SignatureException
SignatureException
boolean verify(byte[] signature, int offset, int length) throws SignatureException
SignatureException
void update(byte b) throws SignatureException
SignatureException
void update(byte[] data) throws SignatureException
SignatureException
void update(byte[] data, int off, int len) throws SignatureException
SignatureException
void update(ByteBuffer data) throws SignatureException
SignatureException
String getAlgorithm()
boolean isSigningCapable()
PrivateKey getUpdatedPrivateKey()
Note: calling this method will effectively disable the Signature object from being used for further signature generation without another call to initSign().
Copyright © 2020 BouncyCastle.org. All rights reserved.