Class HMACSignatureAlgorithm
- java.lang.Object
-
- org.apache.xml.security.stax.impl.algorithms.HMACSignatureAlgorithm
-
- All Implemented Interfaces:
SignatureAlgorithm
public class HMACSignatureAlgorithm extends java.lang.Object implements SignatureAlgorithm
-
-
Field Summary
Fields Modifier and Type Field Description private javax.crypto.Macmac
-
Constructor Summary
Constructors Constructor Description HMACSignatureAlgorithm(java.lang.String jceName, java.lang.String jceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidengineInitSign(java.security.Key signingKey)voidengineInitSign(java.security.Key signingKey, java.security.SecureRandom secureRandom)voidengineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)voidengineInitVerify(java.security.Key verificationKey)voidengineSetParameter(java.security.spec.AlgorithmParameterSpec params)byte[]engineSign()voidengineUpdate(byte input)voidengineUpdate(byte[] input)voidengineUpdate(byte[] buf, int offset, int len)booleanengineVerify(byte[] signature)
-
-
-
Method Detail
-
engineUpdate
public void engineUpdate(byte[] input) throws XMLSecurityException- Specified by:
engineUpdatein interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineUpdate
public void engineUpdate(byte input) throws XMLSecurityException- Specified by:
engineUpdatein interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineUpdate
public void engineUpdate(byte[] buf, int offset, int len) throws XMLSecurityException- Specified by:
engineUpdatein interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineInitSign
public void engineInitSign(java.security.Key signingKey) throws XMLSecurityException- Specified by:
engineInitSignin interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineInitSign
public void engineInitSign(java.security.Key signingKey, java.security.SecureRandom secureRandom) throws XMLSecurityException- Specified by:
engineInitSignin interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineInitSign
public void engineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec) throws XMLSecurityException- Specified by:
engineInitSignin interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineSign
public byte[] engineSign() throws XMLSecurityException- Specified by:
engineSignin interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineInitVerify
public void engineInitVerify(java.security.Key verificationKey) throws XMLSecurityException- Specified by:
engineInitVerifyin interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineVerify
public boolean engineVerify(byte[] signature) throws XMLSecurityException- Specified by:
engineVerifyin interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
engineSetParameter
public void engineSetParameter(java.security.spec.AlgorithmParameterSpec params) throws XMLSecurityException- Specified by:
engineSetParameterin interfaceSignatureAlgorithm- Throws:
XMLSecurityException
-
-