public interface StateAwareSignature
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
java.security.PrivateKey |
getUpdatedPrivateKey()
Return the current version of the private key with the updated state.
|
void |
initSign(java.security.PrivateKey privateKey) |
void |
initSign(java.security.PrivateKey privateKey,
java.security.SecureRandom random) |
void |
initVerify(java.security.cert.Certificate certificate) |
void |
initVerify(java.security.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(java.nio.ByteBuffer data) |
boolean |
verify(byte[] signature) |
boolean |
verify(byte[] signature,
int offset,
int length) |
void initVerify(java.security.PublicKey publicKey)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionvoid initVerify(java.security.cert.Certificate certificate)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionvoid initSign(java.security.PrivateKey privateKey)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionvoid initSign(java.security.PrivateKey privateKey,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionbyte[] sign()
throws java.security.SignatureException
java.security.SignatureExceptionint sign(byte[] outbuf,
int offset,
int len)
throws java.security.SignatureException
java.security.SignatureExceptionboolean verify(byte[] signature)
throws java.security.SignatureException
java.security.SignatureExceptionboolean verify(byte[] signature,
int offset,
int length)
throws java.security.SignatureException
java.security.SignatureExceptionvoid update(byte b)
throws java.security.SignatureException
java.security.SignatureExceptionvoid update(byte[] data)
throws java.security.SignatureException
java.security.SignatureExceptionvoid update(byte[] data,
int off,
int len)
throws java.security.SignatureException
java.security.SignatureExceptionvoid update(java.nio.ByteBuffer data)
throws java.security.SignatureException
java.security.SignatureExceptionjava.lang.String getAlgorithm()
boolean isSigningCapable()
java.security.PrivateKey getUpdatedPrivateKey()
Note: calling this method will effectively disable the Signature object from being used for further signature generation without another call to initSign().