Module org.apache.santuario.xmlsec
Class SignatureBaseRSA
- java.lang.Object
-
- org.apache.xml.security.algorithms.SignatureAlgorithmSpi
-
- org.apache.xml.security.algorithms.implementations.SignatureBaseRSA
-
- Direct Known Subclasses:
SignatureBaseRSA.SignatureBaseRSAPSS,SignatureBaseRSA.SignatureRSAMD5,SignatureBaseRSA.SignatureRSARIPEMD160,SignatureBaseRSA.SignatureRSASHA1,SignatureBaseRSA.SignatureRSASHA224,SignatureBaseRSA.SignatureRSASHA256,SignatureBaseRSA.SignatureRSASHA384,SignatureBaseRSA.SignatureRSASHA512,SignatureBaseRSA.SignatureRSASSAPSS
public abstract class SignatureBaseRSA extends SignatureAlgorithmSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignatureBaseRSA.SignatureBaseRSAPSSstatic classSignatureBaseRSA.SignatureRSAMD5Class SignatureRSAMD5static classSignatureBaseRSA.SignatureRSARIPEMD160Class SignatureRSARIPEMD160static classSignatureBaseRSA.SignatureRSASHA1Class SignatureRSASHA1static classSignatureBaseRSA.SignatureRSASHA1MGF1Class SignatureRSASHA1MGF1static classSignatureBaseRSA.SignatureRSASHA224Class SignatureRSASHA224static classSignatureBaseRSA.SignatureRSASHA224MGF1Class SignatureRSASHA224MGF1static classSignatureBaseRSA.SignatureRSASHA256Class SignatureRSASHA256static classSignatureBaseRSA.SignatureRSASHA256MGF1Class SignatureRSASHA256MGF1static classSignatureBaseRSA.SignatureRSASHA3_224MGF1Class SignatureRSA3_SHA224MGF1static classSignatureBaseRSA.SignatureRSASHA3_256MGF1Class SignatureRSA3_SHA256MGF1static classSignatureBaseRSA.SignatureRSASHA3_384MGF1Class SignatureRSA3_SHA384MGF1static classSignatureBaseRSA.SignatureRSASHA3_512MGF1Class SignatureRSASHA3_512MGF1static classSignatureBaseRSA.SignatureRSASHA384Class SignatureRSASHA384static classSignatureBaseRSA.SignatureRSASHA384MGF1Class SignatureRSASHA384MGF1static classSignatureBaseRSA.SignatureRSASHA512Class SignatureRSASHA512static classSignatureBaseRSA.SignatureRSASHA512MGF1Class SignatureRSASHA512MGF1static classSignatureBaseRSA.SignatureRSASSAPSS
-
Constructor Summary
Constructors Constructor Description SignatureBaseRSA()Constructor SignatureRSASignatureBaseRSA(Provider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringengineGetJCEAlgorithmString()Proxy method forSignature.getAlgorithm()which is executed on the internalSignatureobject.protected StringengineGetJCEProviderName()Method engineGetJCEProviderNameprotected 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 voidengineSetParameter(AlgorithmParameterSpec params)Proxy method forSignature.setParameter( java.security.spec.AlgorithmParameterSpec)which is executed on the internalSignatureobject.protected byte[]engineSign()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
engineAddContextToElement, engineGetContextFromElement, engineGetURI, engineInitSign, engineInitVerify
-
-
-
-
Constructor Detail
-
SignatureBaseRSA
public SignatureBaseRSA() throws XMLSignatureExceptionConstructor SignatureRSA- Throws:
XMLSignatureException
-
SignatureBaseRSA
public SignatureBaseRSA(Provider provider) throws XMLSignatureException
- Throws:
XMLSignatureException
-
-
Method Detail
-
engineSetParameter
protected void engineSetParameter(AlgorithmParameterSpec params) throws XMLSignatureException
Proxy method forSignature.setParameter( java.security.spec.AlgorithmParameterSpec)which is executed on the internalSignatureobject.- Specified by:
engineSetParameterin classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineVerify
protected boolean engineVerify(byte[] signature) throws XMLSignatureExceptionProxy method forSignature.verify(byte[])which is executed on the internalSignatureobject.- Specified by:
engineVerifyin classSignatureAlgorithmSpi- Returns:
- true if the signature is correct
- Throws:
XMLSignatureException
-
engineInitVerify
protected void engineInitVerify(Key publicKey) throws XMLSignatureException
Method engineInitVerify- Specified by:
engineInitVerifyin classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineSign
protected byte[] engineSign() throws XMLSignatureExceptionProxy 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
protected void engineInitSign(Key privateKey) throws XMLSignatureException
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
protected void engineUpdate(byte[] input) throws XMLSignatureExceptionProxy method forSignature.update(byte[])which is executed on the internalSignatureobject.- Specified by:
engineUpdatein classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineUpdate
protected void engineUpdate(byte input) throws XMLSignatureExceptionProxy method forSignature.update(byte[])which is executed on the internalSignatureobject.- Specified by:
engineUpdatein classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineUpdate
protected void engineUpdate(byte[] buf, int offset, int len) throws XMLSignatureExceptionProxy method forSignature.update(byte[], int, int)which is executed on the internalSignatureobject.- Specified by:
engineUpdatein classSignatureAlgorithmSpi- Throws:
XMLSignatureException
-
engineGetJCEAlgorithmString
protected String engineGetJCEAlgorithmString()
Proxy method forSignature.getAlgorithm()which is executed on the internalSignatureobject.- Specified by:
engineGetJCEAlgorithmStringin classSignatureAlgorithmSpi- Returns:
- the result of the
Signature.getAlgorithm()method
-
engineGetJCEProviderName
protected String engineGetJCEProviderName()
Method engineGetJCEProviderName- Specified by:
engineGetJCEProviderNamein classSignatureAlgorithmSpi- Returns:
- the JCE ProviderName
-
engineSetHMACOutputLength
protected void engineSetHMACOutputLength(int HMACOutputLength) throws XMLSignatureExceptionMethod 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
-
-