Class SignatureDSA
java.lang.Object
org.apache.xml.security.algorithms.SignatureAlgorithmSpi
org.apache.xml.security.algorithms.implementations.SignatureDSA
- Direct Known Subclasses:
SignatureDSA.SHA256
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringMethod engineGetJCEAlgorithmString Proxy method forSignature.getAlgorithm()which is executed on the internalSignatureobject.protected StringMethod engineGetJCEProviderName Method engineGetJCEProviderNameprotected StringMethod engineGetURI Returns 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) Method engineInitSignprotected 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
-
Field Details
-
URI
- See Also:
-
-
Constructor Details
-
SignatureDSA
Constructor SignatureDSA- Throws:
XMLSignatureException
-
-
Method Details
-
engineGetURI
Method 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
Method 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 Method engineGetJCEProviderName- Specified by:
engineGetJCEProviderNamein classSignatureAlgorithmSpi- Returns:
- the JCE ProviderName
-
engineSetHMACOutputLength
Method engineSetHMACOutputLength- Specified by:
engineSetHMACOutputLengthin classSignatureAlgorithmSpi- Parameters:
HMACOutputLength-- Throws:
XMLSignatureException
-
engineInitSign
protected void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException Method engineInitSign- Specified by:
engineInitSignin classSignatureAlgorithmSpi- Parameters:
signingKey-algorithmParameterSpec-- Throws:
XMLSignatureException
-