Package org.jivesoftware.smack.sasl.core
Interface ScramHmac
-
public interface ScramHmac
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetHmacName()byte[]hmac(byte[] key, byte[] str)RFC 5802 § 2.2 HMAC(key, str).
-
-
-
Method Detail
-
getHmacName
java.lang.String getHmacName()
-
hmac
byte[] hmac(byte[] key, byte[] str) throws java.security.InvalidKeyExceptionRFC 5802 § 2.2 HMAC(key, str).- Parameters:
key- TODO javadoc me pleasestr- TODO javadoc me please- Returns:
- the HMAC-SHA1 value of the input.
- Throws:
java.security.InvalidKeyException- in case there was an invalid key.
-
-