Package org.jivesoftware.smack.util
Class MAC
- java.lang.Object
-
- org.jivesoftware.smack.util.MAC
-
public class MAC extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HMACSHA1
-
Constructor Summary
Constructors Constructor Description MAC()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
hmacsha1(byte[] keyBytes, byte[] input)
static byte[]
hmacsha1(javax.crypto.spec.SecretKeySpec key, byte[] input)
-
-
-
Field Detail
-
HMACSHA1
public static final java.lang.String HMACSHA1
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MAC
public MAC()
-
-
Method Detail
-
hmacsha1
public static byte[] hmacsha1(javax.crypto.spec.SecretKeySpec key, byte[] input) throws java.security.InvalidKeyException
- Throws:
java.security.InvalidKeyException
-
hmacsha1
public static byte[] hmacsha1(byte[] keyBytes, byte[] input) throws java.security.InvalidKeyException
- Throws:
java.security.InvalidKeyException
-
-