public class XMSSSignatureSpi extends java.security.Signature implements StateAwareSignature
Modifier and Type | Class and Description |
---|---|
static class |
XMSSSignatureSpi.generic |
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 |
Modifier | Constructor and Description |
---|---|
protected |
XMSSSignatureSpi(java.lang.String algorithm) |
protected |
XMSSSignatureSpi(java.lang.String sigName,
Digest digest,
XMSSSigner signer) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
engineGetParameter(java.lang.String param)
Deprecated.
|
protected void |
engineInitSign(java.security.PrivateKey privateKey) |
protected void |
engineInitSign(java.security.PrivateKey privateKey,
java.security.SecureRandom random) |
protected void |
engineInitVerify(java.security.PublicKey publicKey) |
protected void |
engineSetParameter(java.security.spec.AlgorithmParameterSpec params) |
protected void |
engineSetParameter(java.lang.String param,
java.lang.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) |
java.security.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, verify
engineGetParameters, engineSign, engineUpdate, engineVerify
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAlgorithm, initSign, initSign, initVerify, initVerify, sign, sign, update, update, update, update, verify, verify
protected XMSSSignatureSpi(java.lang.String algorithm)
protected XMSSSignatureSpi(java.lang.String sigName, Digest digest, XMSSSigner signer)
protected void engineInitVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyException
engineInitVerify
in class java.security.SignatureSpi
java.security.InvalidKeyException
protected void engineInitSign(java.security.PrivateKey privateKey, java.security.SecureRandom random) throws java.security.InvalidKeyException
engineInitSign
in class java.security.SignatureSpi
java.security.InvalidKeyException
protected void engineInitSign(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException
engineInitSign
in class java.security.SignatureSpi
java.security.InvalidKeyException
protected void engineUpdate(byte b) throws java.security.SignatureException
engineUpdate
in class java.security.SignatureSpi
java.security.SignatureException
protected void engineUpdate(byte[] b, int off, int len) throws java.security.SignatureException
engineUpdate
in class java.security.SignatureSpi
java.security.SignatureException
protected byte[] engineSign() throws java.security.SignatureException
engineSign
in class java.security.SignatureSpi
java.security.SignatureException
protected boolean engineVerify(byte[] sigBytes) throws java.security.SignatureException
engineVerify
in class java.security.SignatureSpi
java.security.SignatureException
protected void engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
engineSetParameter
in class java.security.SignatureSpi
protected void engineSetParameter(java.lang.String param, java.lang.Object value)
engineSetParameter
in class java.security.SignatureSpi
protected java.lang.Object engineGetParameter(java.lang.String param)
engineGetParameter
in class java.security.SignatureSpi
public boolean isSigningCapable()
StateAwareSignature
isSigningCapable
in interface StateAwareSignature
public java.security.PrivateKey getUpdatedPrivateKey()
StateAwareSignature
Note: calling this method will effectively disable the Signature object from being used for further signature generation without another call to initSign().
getUpdatedPrivateKey
in interface StateAwareSignature