public abstract class SignatureBaseRSA extends SignatureAlgorithmSpi
Modifier and Type | Class and Description |
---|---|
static class |
SignatureBaseRSA.SignatureRSAMD5
Class SignatureRSAMD5
|
static class |
SignatureBaseRSA.SignatureRSARIPEMD160
Class SignatureRSARIPEMD160
|
static class |
SignatureBaseRSA.SignatureRSASHA1
Class SignatureRSASHA1
|
static class |
SignatureBaseRSA.SignatureRSASHA224
Class SignatureRSASHA224
|
static class |
SignatureBaseRSA.SignatureRSASHA256
Class SignatureRSASHA256
|
static class |
SignatureBaseRSA.SignatureRSASHA384
Class SignatureRSASHA384
|
static class |
SignatureBaseRSA.SignatureRSASHA512
Class SignatureRSASHA512
|
Constructor and Description |
---|
SignatureBaseRSA()
Constructor SignatureRSA
|
Modifier and Type | Method and Description |
---|---|
protected String |
engineGetJCEAlgorithmString()
Proxy method for
Signature.getAlgorithm()
which is executed on the internal Signature object. |
protected String |
engineGetJCEProviderName()
Method engineGetJCEProviderName
|
abstract String |
engineGetURI()
Returns the URI representation of
Transformation algorithm |
protected void |
engineInitSign(Key privateKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
protected void |
engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for
Mac
which is executed on the internal Mac.init(Key) object. |
protected void |
engineInitSign(Key privateKey,
SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature object. |
protected void |
engineInitVerify(Key publicKey)
Method engineInitVerify
|
protected void |
engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength
|
protected void |
engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected byte[] |
engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
engineUpdate(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
protected boolean |
engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
engineGetContextFromElement, reset
public SignatureBaseRSA() throws XMLSignatureException
XMLSignatureException
public abstract String engineGetURI()
SignatureAlgorithmSpi
Transformation algorithm
engineGetURI
in class SignatureAlgorithmSpi
Transformation algorithm
protected void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException
SignatureAlgorithmSpi
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature
object.engineSetParameter
in class SignatureAlgorithmSpi
XMLSignatureException
protected boolean engineVerify(byte[] signature) throws XMLSignatureException
SignatureAlgorithmSpi
Signature.verify(byte[])
which is executed on the internal Signature
object.engineVerify
in class SignatureAlgorithmSpi
XMLSignatureException
protected void engineInitVerify(Key publicKey) throws XMLSignatureException
SignatureAlgorithmSpi
engineInitVerify
in class SignatureAlgorithmSpi
XMLSignatureException
protected byte[] engineSign() throws XMLSignatureException
SignatureAlgorithmSpi
Signature.sign()
which is executed on the internal Signature
object.engineSign
in class SignatureAlgorithmSpi
Signature.sign()
methodXMLSignatureException
protected void engineInitSign(Key privateKey, SecureRandom secureRandom) throws XMLSignatureException
SignatureAlgorithmSpi
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature
object.engineInitSign
in class SignatureAlgorithmSpi
XMLSignatureException
- if this method is called on a MACprotected void engineInitSign(Key privateKey) throws XMLSignatureException
SignatureAlgorithmSpi
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature
object.engineInitSign
in class SignatureAlgorithmSpi
XMLSignatureException
- if this method is called on a MACprotected void engineUpdate(byte[] input) throws XMLSignatureException
SignatureAlgorithmSpi
Signature.update(byte[])
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
XMLSignatureException
protected void engineUpdate(byte input) throws XMLSignatureException
SignatureAlgorithmSpi
Signature.update(byte[])
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
XMLSignatureException
protected void engineUpdate(byte[] buf, int offset, int len) throws XMLSignatureException
SignatureAlgorithmSpi
Signature.update(byte[], int, int)
which is executed on the internal Signature
object.engineUpdate
in class SignatureAlgorithmSpi
XMLSignatureException
protected String engineGetJCEAlgorithmString()
SignatureAlgorithmSpi
Signature.getAlgorithm()
which is executed on the internal Signature
object.engineGetJCEAlgorithmString
in class SignatureAlgorithmSpi
Signature.getAlgorithm()
methodprotected String engineGetJCEProviderName()
SignatureAlgorithmSpi
engineGetJCEProviderName
in class SignatureAlgorithmSpi
protected void engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureException
SignatureAlgorithmSpi
engineSetHMACOutputLength
in class SignatureAlgorithmSpi
XMLSignatureException
protected void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException
SignatureAlgorithmSpi
Mac
which is executed on the internal Mac.init(Key)
object.engineInitSign
in class SignatureAlgorithmSpi
XMLSignatureException
- if this method is called on a SignatureCopyright © 2000–2017 The Apache Software Foundation. All rights reserved.