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.
| Constructor and Description |
|---|
SHAPasswordEncoder(int strength) |
| Modifier and Type | Method and Description |
|---|---|
String |
encode(String rawPassword) |
protected MessageDigest |
getMessageDigest() |
int |
getStrength() |
boolean |
verify(String rawPassword,
String encodedPassword) |
protected final MessageDigest getMessageDigest() throws IllegalArgumentException
IllegalArgumentExceptionpublic int getStrength()
Copyright © 2016 JBoss by Red Hat. All rights reserved.