Package org.keycloak.models.utils
Class SHAPasswordEncoder
java.lang.Object
org.keycloak.models.utils.SHAPasswordEncoder
Password that uses SHA to encode passwords. You can always change the SHA strength by specifying a valid integer when creating a new instance.
Passwords are returned with a Base64 encoding.
- Author:
- Pedro Silva
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SHAPasswordEncoder
public SHAPasswordEncoder(int strength)
-
-
Method Details
-
encode
-
verify
-
getMessageDigest
- Throws:
IllegalArgumentException
-
getStrength
public int getStrength()
-