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
IllegalArgumentException
public int getStrength()
Copyright © 2021 JBoss by Red Hat. All rights reserved.