Class SignatureBaseRSA
java.lang.Object
org.apache.xml.security.algorithms.SignatureAlgorithmSpi
org.apache.xml.security.algorithms.implementations.SignatureBaseRSA
- Direct Known Subclasses:
SignatureBaseRSA.SignatureRSAMD5
,SignatureBaseRSA.SignatureRSARIPEMD160
,SignatureBaseRSA.SignatureRSASHA1
,SignatureBaseRSA.SignatureRSASHA1MGF1
,SignatureBaseRSA.SignatureRSASHA224
,SignatureBaseRSA.SignatureRSASHA224MGF1
,SignatureBaseRSA.SignatureRSASHA256
,SignatureBaseRSA.SignatureRSASHA256MGF1
,SignatureBaseRSA.SignatureRSASHA3_224MGF1
,SignatureBaseRSA.SignatureRSASHA3_256MGF1
,SignatureBaseRSA.SignatureRSASHA3_384MGF1
,SignatureBaseRSA.SignatureRSASHA3_512MGF1
,SignatureBaseRSA.SignatureRSASHA384
,SignatureBaseRSA.SignatureRSASHA384MGF1
,SignatureBaseRSA.SignatureRSASHA512
,SignatureBaseRSA.SignatureRSASHA512MGF1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Class SignatureRSAMD5static class
Class SignatureRSARIPEMD160static class
Class SignatureRSASHA1static class
Class SignatureRSASHA1MGF1static class
Class SignatureRSASHA224static class
Class SignatureRSASHA224MGF1static class
Class SignatureRSASHA256static class
Class SignatureRSASHA256MGF1static class
Class SignatureRSA3_SHA224MGF1static class
Class SignatureRSA3_SHA256MGF1static class
Class SignatureRSA3_SHA384MGF1static class
Class SignatureRSASHA3_512MGF1static class
Class SignatureRSASHA384static class
Class SignatureRSASHA384MGF1static class
Class SignatureRSASHA512static class
Class SignatureRSASHA512MGF1 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private Signature
Field algorithm -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Proxy method forSignature.getAlgorithm()
which is executed on the internalSignature
object.protected String
Method engineGetJCEProviderNameabstract String
Returns the URI representation ofTransformation algorithm
protected void
engineInitSign
(Key privateKey) Proxy method forSignature.initSign(java.security.PrivateKey)
which is executed on the internalSignature
object.protected void
engineInitSign
(Key privateKey, SecureRandom secureRandom) Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internalSignature
object.protected void
engineInitSign
(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) Proxy method forMac
which is executed on the internalMac.init(Key)
object.protected void
engineInitVerify
(Key publicKey) Method engineInitVerifyprotected void
engineSetHMACOutputLength
(int HMACOutputLength) Method engineSetHMACOutputLengthprotected void
Proxy method forSignature.setParameter(java.security.spec.AlgorithmParameterSpec)
which is executed on the internalSignature
object.protected byte[]
Proxy method forSignature.sign()
which is executed on the internalSignature
object.protected void
engineUpdate
(byte input) Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
engineUpdate
(byte[] input) Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
engineUpdate
(byte[] buf, int offset, int len) Proxy method forSignature.update(byte[], int, int)
which is executed on the internalSignature
object.protected boolean
engineVerify
(byte[] signature) Proxy method forSignature.verify(byte[])
which is executed on the internalSignature
object.Methods inherited from class org.apache.xml.security.algorithms.SignatureAlgorithmSpi
engineGetContextFromElement, reset
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
signatureAlgorithm
Field algorithm
-
-
Constructor Details
-
SignatureBaseRSA
Constructor SignatureRSA- Throws:
XMLSignatureException
-
-
Method Details
-
engineGetURI
Returns the URI representation ofTransformation algorithm
- Specified by:
engineGetURI
in classSignatureAlgorithmSpi
- Returns:
- the URI representation of
Transformation algorithm
-
engineSetParameter
Proxy method forSignature.setParameter(java.security.spec.AlgorithmParameterSpec)
which is executed on the internalSignature
object.- Specified by:
engineSetParameter
in classSignatureAlgorithmSpi
- Parameters:
params
-- Throws:
XMLSignatureException
-
engineVerify
Proxy method forSignature.verify(byte[])
which is executed on the internalSignature
object.- Specified by:
engineVerify
in classSignatureAlgorithmSpi
- Parameters:
signature
-- Returns:
- true if the signature is correct
- Throws:
XMLSignatureException
-
engineInitVerify
Method engineInitVerify- Specified by:
engineInitVerify
in classSignatureAlgorithmSpi
- Parameters:
publicKey
-- Throws:
XMLSignatureException
-
engineSign
Proxy method forSignature.sign()
which is executed on the internalSignature
object.- Specified by:
engineSign
in classSignatureAlgorithmSpi
- Returns:
- the result of the
Signature.sign()
method - Throws:
XMLSignatureException
-
engineInitSign
protected void engineInitSign(Key privateKey, SecureRandom secureRandom) throws XMLSignatureException Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internalSignature
object.- Specified by:
engineInitSign
in classSignatureAlgorithmSpi
- Parameters:
privateKey
-secureRandom
-- Throws:
XMLSignatureException
- if this method is called on a MAC
-
engineInitSign
Proxy method forSignature.initSign(java.security.PrivateKey)
which is executed on the internalSignature
object.- Specified by:
engineInitSign
in classSignatureAlgorithmSpi
- Parameters:
privateKey
-- Throws:
XMLSignatureException
- if this method is called on a MAC
-
engineUpdate
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.- Specified by:
engineUpdate
in classSignatureAlgorithmSpi
- Parameters:
input
-- Throws:
XMLSignatureException
-
engineUpdate
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.- Specified by:
engineUpdate
in classSignatureAlgorithmSpi
- Parameters:
input
-- Throws:
XMLSignatureException
-
engineUpdate
Proxy method forSignature.update(byte[], int, int)
which is executed on the internalSignature
object.- Specified by:
engineUpdate
in classSignatureAlgorithmSpi
- Parameters:
buf
-offset
-len
-- Throws:
XMLSignatureException
-
engineGetJCEAlgorithmString
Proxy method forSignature.getAlgorithm()
which is executed on the internalSignature
object.- Specified by:
engineGetJCEAlgorithmString
in classSignatureAlgorithmSpi
- Returns:
- the result of the
Signature.getAlgorithm()
method
-
engineGetJCEProviderName
Method engineGetJCEProviderName- Specified by:
engineGetJCEProviderName
in classSignatureAlgorithmSpi
- Returns:
- the JCE ProviderName
-
engineSetHMACOutputLength
Method engineSetHMACOutputLength- Specified by:
engineSetHMACOutputLength
in classSignatureAlgorithmSpi
- Parameters:
HMACOutputLength
-- Throws:
XMLSignatureException
-
engineInitSign
protected void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException Proxy method forMac
which is executed on the internalMac.init(Key)
object.- Specified by:
engineInitSign
in classSignatureAlgorithmSpi
- Parameters:
signingKey
-algorithmParameterSpec
-- Throws:
XMLSignatureException
- if this method is called on a Signature
-