org.apache.xml.security.stax.impl.algorithms
Class HMACSignatureAlgorithm

java.lang.Object
  extended by org.apache.xml.security.stax.impl.algorithms.HMACSignatureAlgorithm
All Implemented Interfaces:
SignatureAlgorithm

public class HMACSignatureAlgorithm
extends Object
implements SignatureAlgorithm

Version:
$Revision: 1491820 $ $Date: 2013-06-11 15:58:16 +0100 (Tue, 11 Jun 2013) $
Author:
$Author: coheigea $

Constructor Summary
HMACSignatureAlgorithm(String jceName, String jceProvider)
           
 
Method Summary
 void engineInitSign(Key signingKey)
           
 void engineInitSign(Key signingKey, AlgorithmParameterSpec algorithmParameterSpec)
           
 void engineInitSign(Key signingKey, SecureRandom secureRandom)
           
 void engineInitVerify(Key verificationKey)
           
 void engineSetParameter(AlgorithmParameterSpec params)
           
 byte[] engineSign()
           
 void engineUpdate(byte input)
           
 void engineUpdate(byte[] input)
           
 void engineUpdate(byte[] buf, int offset, int len)
           
 boolean engineVerify(byte[] signature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMACSignatureAlgorithm

public HMACSignatureAlgorithm(String jceName,
                              String jceProvider)
                       throws NoSuchProviderException,
                              NoSuchAlgorithmException
Throws:
NoSuchProviderException
NoSuchAlgorithmException
Method Detail

engineUpdate

public void engineUpdate(byte[] input)
                  throws XMLSecurityException
Specified by:
engineUpdate in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineUpdate

public void engineUpdate(byte input)
                  throws XMLSecurityException
Specified by:
engineUpdate in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineUpdate

public void engineUpdate(byte[] buf,
                         int offset,
                         int len)
                  throws XMLSecurityException
Specified by:
engineUpdate in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineInitSign

public void engineInitSign(Key signingKey)
                    throws XMLSecurityException
Specified by:
engineInitSign in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineInitSign

public void engineInitSign(Key signingKey,
                           SecureRandom secureRandom)
                    throws XMLSecurityException
Specified by:
engineInitSign in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineInitSign

public void engineInitSign(Key signingKey,
                           AlgorithmParameterSpec algorithmParameterSpec)
                    throws XMLSecurityException
Specified by:
engineInitSign in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineSign

public byte[] engineSign()
                  throws XMLSecurityException
Specified by:
engineSign in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineInitVerify

public void engineInitVerify(Key verificationKey)
                      throws XMLSecurityException
Specified by:
engineInitVerify in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineVerify

public boolean engineVerify(byte[] signature)
                     throws XMLSecurityException
Specified by:
engineVerify in interface SignatureAlgorithm
Throws:
XMLSecurityException

engineSetParameter

public void engineSetParameter(AlgorithmParameterSpec params)
                        throws XMLSecurityException
Specified by:
engineSetParameter in interface SignatureAlgorithm
Throws:
XMLSecurityException


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.