Package org.jivesoftware.openfire.auth
Class ScramUtils
java.lang.Object
org.jivesoftware.openfire.auth.ScramUtils
A utility class that provides methods that are useful for dealing with
Salted Challenge Response Authentication Mechanism (SCRAM).
- Author:
- Richard Midwinter
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
computeHmac
(byte[] key, String string) static byte[]
createSaltedPassword
(byte[] salt, String password, int iters) static Mac
createSha1Hmac
(byte[] keyBytes)
-
Field Details
-
DEFAULT_ITERATION_COUNT
public static final int DEFAULT_ITERATION_COUNT- See Also:
-
-
Method Details
-
createSaltedPassword
public static byte[] createSaltedPassword(byte[] salt, String password, int iters) throws SaslException - Throws:
SaslException
-
computeHmac
- Throws:
SaslException
-
createSha1Hmac
- Throws:
SaslException
-