org.jboss.aerogear.crypto
Class Hmac
java.lang.Object
org.jboss.aerogear.crypto.Hmac
public class Hmac
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hmac
private Mac hmac
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)
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
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.