aerogear-crypto 0.1.1

org.jboss.aerogear.crypto
Class Hmac

java.lang.Object
  extended by org.jboss.aerogear.crypto.Hmac

public class Hmac
extends Object


Field Summary
private  Mac hmac
           
 
Constructor Summary
Hmac(SecretKey secretKey)
           
Hmac(String secret)
           
Hmac(String algorithm, SecretKey secretKey)
           
Hmac(String algorithm, String secret)
           
 
Method Summary
 String digest()
           
 String digest(byte[] message)
           
 String digest(Encoder encoder, byte[] message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hmac

private Mac hmac
Constructor Detail

Hmac

public Hmac(String algorithm,
            SecretKey secretKey)

Hmac

public Hmac(String algorithm,
            String secret)
     throws InvalidKeySpecException
Throws:
InvalidKeySpecException

Hmac

public Hmac(String secret)
     throws InvalidKeySpecException
Throws:
InvalidKeySpecException

Hmac

public Hmac(SecretKey secretKey)
Method Detail

digest

public String digest(Encoder encoder,
                     byte[] message)
              throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

digest

public String digest(byte[] message)
              throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

digest

public String digest()
              throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

aerogear-crypto 0.1.1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.