public class MAC
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HMACSHA1 |
| Constructor and Description |
|---|
MAC() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
hmacsha1(byte[] keyBytes,
byte[] input) |
static byte[] |
hmacsha1(javax.crypto.spec.SecretKeySpec key,
byte[] input) |
public static final java.lang.String HMACSHA1
public static byte[] hmacsha1(javax.crypto.spec.SecretKeySpec key,
byte[] input)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic static byte[] hmacsha1(byte[] keyBytes,
byte[] input)
throws java.security.InvalidKeyException
java.security.InvalidKeyException