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
InvalidKeyExceptionvoid initVerify(Certificate certificate) throws InvalidKeyException
InvalidKeyExceptionvoid initSign(PrivateKey privateKey) throws InvalidKeyException
InvalidKeyExceptionvoid initSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException
InvalidKeyExceptionbyte[] sign()
throws SignatureException
SignatureExceptionint sign(byte[] outbuf,
int offset,
int len)
throws SignatureException
SignatureExceptionboolean verify(byte[] signature)
throws SignatureException
SignatureExceptionboolean verify(byte[] signature,
int offset,
int length)
throws SignatureException
SignatureExceptionvoid update(byte b)
throws SignatureException
SignatureExceptionvoid update(byte[] data)
throws SignatureException
SignatureExceptionvoid update(byte[] data,
int off,
int len)
throws SignatureException
SignatureExceptionvoid update(ByteBuffer data) throws SignatureException
SignatureExceptionString 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 © 2015–2019 The veraPDF Consortium. All rights reserved.