public interface StateAwareSignature
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Deprecated.
|
PrivateKey |
getUpdatedPrivateKey()
Deprecated.
Return the current version of the private key with the updated state.
|
void |
initSign(PrivateKey privateKey)
Deprecated.
|
void |
initSign(PrivateKey privateKey,
SecureRandom random)
Deprecated.
|
void |
initVerify(Certificate certificate)
Deprecated.
|
void |
initVerify(PublicKey publicKey)
Deprecated.
|
boolean |
isSigningCapable()
Deprecated.
Return true if this Signature object can be used for signing.
|
byte[] |
sign()
Deprecated.
|
int |
sign(byte[] outbuf,
int offset,
int len)
Deprecated.
|
void |
update(byte b)
Deprecated.
|
void |
update(byte[] data)
Deprecated.
|
void |
update(byte[] data,
int off,
int len)
Deprecated.
|
void |
update(ByteBuffer data)
Deprecated.
|
boolean |
verify(byte[] signature)
Deprecated.
|
boolean |
verify(byte[] signature,
int offset,
int length)
Deprecated.
|
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 © 2021 BouncyCastle.org. All rights reserved.