public interface StateAwareSignature
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Deprecated.
|
java.security.PrivateKey |
getUpdatedPrivateKey()
Deprecated.
Return the current version of the private key with the updated state.
|
void |
initSign(java.security.PrivateKey privateKey)
Deprecated.
|
void |
initSign(java.security.PrivateKey privateKey,
java.security.SecureRandom random)
Deprecated.
|
void |
initVerify(java.security.cert.Certificate certificate)
Deprecated.
|
void |
initVerify(java.security.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(java.nio.ByteBuffer data)
Deprecated.
|
boolean |
verify(byte[] signature)
Deprecated.
|
boolean |
verify(byte[] signature,
int offset,
int length)
Deprecated.
|
void initVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyException
java.security.InvalidKeyException
void initVerify(java.security.cert.Certificate certificate) throws java.security.InvalidKeyException
java.security.InvalidKeyException
void initSign(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException
java.security.InvalidKeyException
void initSign(java.security.PrivateKey privateKey, java.security.SecureRandom random) throws java.security.InvalidKeyException
java.security.InvalidKeyException
byte[] sign() throws java.security.SignatureException
java.security.SignatureException
int sign(byte[] outbuf, int offset, int len) throws java.security.SignatureException
java.security.SignatureException
boolean verify(byte[] signature) throws java.security.SignatureException
java.security.SignatureException
boolean verify(byte[] signature, int offset, int length) throws java.security.SignatureException
java.security.SignatureException
void update(byte b) throws java.security.SignatureException
java.security.SignatureException
void update(byte[] data) throws java.security.SignatureException
java.security.SignatureException
void update(byte[] data, int off, int len) throws java.security.SignatureException
java.security.SignatureException
void update(java.nio.ByteBuffer data) throws java.security.SignatureException
java.security.SignatureException
java.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().