Package org.keycloak.models.utils
Class SHAPasswordEncoder
- java.lang.Object
- 
- org.keycloak.models.utils.SHAPasswordEncoder
 
- 
 public class SHAPasswordEncoder extends Object 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 SummaryConstructors Constructor Description SHAPasswordEncoder(int strength)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode(String rawPassword)protected MessageDigestgetMessageDigest()intgetStrength()booleanverify(String rawPassword, String encodedPassword)
 
- 
- 
- 
Method Detail- 
getMessageDigestprotected final MessageDigest getMessageDigest() throws IllegalArgumentException - Throws:
- IllegalArgumentException
 
 - 
getStrengthpublic int getStrength() 
 
- 
 
-