public class OpenSSLSignature extends SignatureSpi
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenSSLSignature.MD5RSA |
static class |
OpenSSLSignature.SHA1ECDSA |
static class |
OpenSSLSignature.SHA1RSA |
static class |
OpenSSLSignature.SHA1RSAPSS |
static class |
OpenSSLSignature.SHA224ECDSA |
static class |
OpenSSLSignature.SHA224RSA |
static class |
OpenSSLSignature.SHA224RSAPSS |
static class |
OpenSSLSignature.SHA256ECDSA |
static class |
OpenSSLSignature.SHA256RSA |
static class |
OpenSSLSignature.SHA256RSAPSS |
static class |
OpenSSLSignature.SHA384ECDSA |
static class |
OpenSSLSignature.SHA384RSA |
static class |
OpenSSLSignature.SHA384RSAPSS |
static class |
OpenSSLSignature.SHA512ECDSA |
static class |
OpenSSLSignature.SHA512RSA |
static class |
OpenSSLSignature.SHA512RSAPSS |
appRandom| Modifier and Type | Method and Description |
|---|---|
protected void |
configureEVP_PKEY_CTX(long ctx)
Configures the public key algorithm context (
EVP_PKEY_CTX) associated with this
operation. |
protected Object |
engineGetParameter(String param)
Deprecated.
|
protected void |
engineInitSign(PrivateKey privateKey) |
protected void |
engineInitVerify(PublicKey publicKey) |
protected void |
engineSetParameter(String param,
Object value)
Deprecated.
|
protected byte[] |
engineSign() |
protected void |
engineUpdate(byte input) |
protected void |
engineUpdate(byte[] input,
int offset,
int len) |
protected void |
engineUpdate(ByteBuffer input) |
protected boolean |
engineVerify(byte[] sigBytes) |
protected long |
getEVP_PKEY_CTX()
Returns the public key algorithm context (
EVP_PKEY_CTX reference) associated with
this operation or 0 if operation hasn't been initialized. |
clone, engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineVerifyprotected void configureEVP_PKEY_CTX(long ctx)
throws InvalidAlgorithmParameterException
EVP_PKEY_CTX) associated with this
operation.
The default implementation does nothing.
ctx - reference to the context (EVP_PKEY_CTX).InvalidAlgorithmParameterExceptionprotected void engineUpdate(byte input)
engineUpdate in class SignatureSpiprotected void engineUpdate(byte[] input,
int offset,
int len)
engineUpdate in class SignatureSpiprotected void engineUpdate(ByteBuffer input)
engineUpdate in class SignatureSpi@Deprecated protected Object engineGetParameter(String param) throws InvalidParameterException
engineGetParameter in class SignatureSpiInvalidParameterExceptionprotected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
engineInitSign in class SignatureSpiInvalidKeyExceptionprotected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
engineInitVerify in class SignatureSpiInvalidKeyException@Deprecated protected void engineSetParameter(String param, Object value) throws InvalidParameterException
engineSetParameter in class SignatureSpiInvalidParameterExceptionprotected byte[] engineSign()
throws SignatureException
engineSign in class SignatureSpiSignatureExceptionprotected boolean engineVerify(byte[] sigBytes)
throws SignatureException
engineVerify in class SignatureSpiSignatureExceptionprotected final long getEVP_PKEY_CTX()
EVP_PKEY_CTX reference) associated with
this operation or 0 if operation hasn't been initialized.