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 classClass SignatureRSAMD5static classClass SignatureRSARIPEMD160static classClass SignatureRSASHA1static classClass SignatureRSASHA1MGF1static classClass SignatureRSASHA224static classClass SignatureRSASHA224MGF1static classClass SignatureRSASHA256static classClass SignatureRSASHA256MGF1static classClass SignatureRSA3_SHA224MGF1static classClass SignatureRSA3_SHA256MGF1static classClass SignatureRSA3_SHA384MGF1static classClass SignatureRSASHA3_512MGF1static classClass SignatureRSASHA384static classClass SignatureRSASHA384MGF1static classClass SignatureRSASHA512static classClass SignatureRSASHA512MGF1 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringProxy method forSignature.getAlgorithm()which is executed on the internalSignatureobject.protected StringMethod engineGetJCEProviderNameabstract StringReturns the URI representation ofTransformation algorithmprotected voidengineInitSign(Key privateKey) Proxy method forSignature.initSign(java.security.PrivateKey)which is executed on the internalSignatureobject.protected voidengineInitSign(Key privateKey, SecureRandom secureRandom) Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)which is executed on the internalSignatureobject.protected voidengineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) Proxy method forMacwhich is executed on the internalMac.init(Key)object.protected voidengineInitVerify(Key publicKey) Method engineInitVerifyprotected voidengineSetHMACOutputLength(int HMACOutputLength) Method engineSetHMACOutputLengthprotected voidProxy method forSignature.setParameter(java.security.spec.AlgorithmParameterSpec)which is executed on the internalSignatureobject.protected byte[]Proxy method forSignature.sign()which is executed on the internalSignatureobject.protected voidengineUpdate(byte input) Proxy method forSignature.update(byte[])which is executed on the internalSignatureobject.protected voidengineUpdate(byte[] input) Proxy method forSignature.update(byte[])which is executed on the internalSignatureobject.protected voidengineUpdate(byte[] buf, int offset, int len) Proxy method forSignature.update(byte[], int, int)which is executed on the internalSignatureobject.protected booleanengineVerify(byte[] signature) Proxy method forSignature.verify(byte[])which is executed on the internalSignatureobject.Methods inherited from class org.apache.xml.security.algorithms.SignatureAlgorithmSpi
engineGetContextFromElement, reset
-
Constructor Details
-
SignatureBaseRSA
Constructor SignatureRSA- Throws:
XMLSignatureException
-
-
Method Details
-
engineGetURI
Returns the URI representation ofTransformation algorithm- Specified by:
engineGetURIin classSignatureAlgorithmSpi- Returns:
- the URI representation of
Transformation algorithm
-
engineSetParameter
Proxy method forSignature.setParameter(java.security.spec.AlgorithmParameterSpec)which is executed on the internalSignatureobject.- Specified by:
engineSetParameterin classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineVerify
Proxy method forSignature.verify(byte[])which is executed on the internalSignatureobject.- Specified by:
engineVerifyin classSignatureAlgorithmSpi- Returns:
- true if the signature is correct
- Throws:
XMLSignatureException
-
engineInitVerify
Method engineInitVerify- Specified by:
engineInitVerifyin classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineSign
Proxy method forSignature.sign()which is executed on the internalSignatureobject.- Specified by:
engineSignin 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 internalSignatureobject.- Specified by:
engineInitSignin classSignatureAlgorithmSpi- Throws:
XMLSignatureException- if this method is called on a MAC
-
engineInitSign
Proxy method forSignature.initSign(java.security.PrivateKey)which is executed on the internalSignatureobject.- Specified by:
engineInitSignin classSignatureAlgorithmSpi- Throws:
XMLSignatureException- if this method is called on a MAC
-
engineUpdate
Proxy method forSignature.update(byte[])which is executed on the internalSignatureobject.- Specified by:
engineUpdatein classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineUpdate
Proxy method forSignature.update(byte[])which is executed on the internalSignatureobject.- Specified by:
engineUpdatein classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineUpdate
Proxy method forSignature.update(byte[], int, int)which is executed on the internalSignatureobject.- Specified by:
engineUpdatein classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineGetJCEAlgorithmString
Proxy method forSignature.getAlgorithm()which is executed on the internalSignatureobject.- Specified by:
engineGetJCEAlgorithmStringin classSignatureAlgorithmSpi- Returns:
- the result of the
Signature.getAlgorithm()method
-
engineGetJCEProviderName
Method engineGetJCEProviderName- Specified by:
engineGetJCEProviderNamein classSignatureAlgorithmSpi- Returns:
- the JCE ProviderName
-
engineSetHMACOutputLength
Method engineSetHMACOutputLength- Specified by:
engineSetHMACOutputLengthin classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineInitSign
protected void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException Proxy method forMacwhich is executed on the internalMac.init(Key)object.- Specified by:
engineInitSignin classSignatureAlgorithmSpi- Throws:
XMLSignatureException- if this method is called on a Signature
-