public class XMSSSignatureSpi extends Signature implements StateAwareSignature
| Modifier and Type | Class and Description |
|---|---|
static class |
XMSSSignatureSpi.withSha256 |
static class |
XMSSSignatureSpi.withSha256andPrehash |
static class |
XMSSSignatureSpi.withSha512 |
static class |
XMSSSignatureSpi.withSha512andPrehash |
static class |
XMSSSignatureSpi.withShake128 |
static class |
XMSSSignatureSpi.withShake128andPrehash |
static class |
XMSSSignatureSpi.withShake256 |
static class |
XMSSSignatureSpi.withShake256andPrehash |
SIGN, state, UNINITIALIZED, VERIFYappRandom| Modifier | Constructor and Description |
|---|---|
protected |
XMSSSignatureSpi(String algorithm) |
protected |
XMSSSignatureSpi(String sigName,
Digest digest,
XMSSSigner signer) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
engineGetParameter(String param)
Deprecated.
|
protected void |
engineInitSign(PrivateKey privateKey) |
protected void |
engineInitSign(PrivateKey privateKey,
SecureRandom random) |
protected void |
engineInitVerify(PublicKey publicKey) |
protected void |
engineSetParameter(AlgorithmParameterSpec params) |
protected void |
engineSetParameter(String param,
Object value)
Deprecated.
replaced with #engineSetParameter(java.security.spec.AlgorithmParameterSpec)
|
protected byte[] |
engineSign() |
protected void |
engineUpdate(byte b) |
protected void |
engineUpdate(byte[] b,
int off,
int len) |
protected boolean |
engineVerify(byte[] sigBytes) |
PrivateKey |
getUpdatedPrivateKey()
Return the current version of the private key with the updated state.
|
boolean |
isSigningCapable()
Return true if this Signature object can be used for signing.
|
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verifyengineGetParameters, engineSign, engineUpdate, engineVerifyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAlgorithm, initSign, initSign, initVerify, initVerify, sign, sign, update, update, update, update, verify, verifyprotected XMSSSignatureSpi(String algorithm)
protected XMSSSignatureSpi(String sigName, Digest digest, XMSSSigner signer)
protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
engineInitVerify in class SignatureSpiInvalidKeyExceptionprotected void engineInitSign(PrivateKey privateKey, SecureRandom random) throws InvalidKeyException
engineInitSign in class SignatureSpiInvalidKeyExceptionprotected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
engineInitSign in class SignatureSpiInvalidKeyExceptionprotected void engineUpdate(byte b)
throws SignatureException
engineUpdate in class SignatureSpiSignatureExceptionprotected void engineUpdate(byte[] b,
int off,
int len)
throws SignatureException
engineUpdate in class SignatureSpiSignatureExceptionprotected byte[] engineSign()
throws SignatureException
engineSign in class SignatureSpiSignatureExceptionprotected boolean engineVerify(byte[] sigBytes)
throws SignatureException
engineVerify in class SignatureSpiSignatureExceptionprotected void engineSetParameter(AlgorithmParameterSpec params)
engineSetParameter in class SignatureSpiprotected void engineSetParameter(String param, Object value)
engineSetParameter in class SignatureSpiprotected Object engineGetParameter(String param)
engineGetParameter in class SignatureSpipublic boolean isSigningCapable()
StateAwareSignatureisSigningCapable in interface StateAwareSignaturepublic PrivateKey getUpdatedPrivateKey()
StateAwareSignatureNote: calling this method will effectively disable the Signature object from being used for further signature generation without another call to initSign().
getUpdatedPrivateKey in interface StateAwareSignatureCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.