public final class StrongCleanablePasswordEncryptor extends Object implements CleanablePasswordEncryptor
Constructor and Description |
---|
StrongCleanablePasswordEncryptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPassword(char[] plainPassword,
String encryptedPassword)
Checks an unencrypted password against an encrypted one to see if they match.
|
String |
encryptPassword(char[] password)
Encrypts a password.
|
public String encryptPassword(char[] password)
CleanablePasswordEncryptor
encryptPassword
in interface CleanablePasswordEncryptor
password
- the plaintext password as a cleanable char[]public boolean checkPassword(char[] plainPassword, String encryptedPassword)
CleanablePasswordEncryptor
checkPassword
in interface CleanablePasswordEncryptor
plainPassword
- the plaintext password as a cleanable char[]encryptedPassword
- the (BASE-64) digest from an earlier encryption against which to check the plaintext password
OACC is a Java Application Security Framework developed by Acciente, LLC..
Copyright 2014, Acciente, LLC.All rights reserved.