|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordHandler
Method Summary | |
---|---|
boolean |
checkPassword(java.lang.String enteredPass,
java.lang.String tablePass)
Returns true if the entered password matches the password saved in the table |
java.lang.String |
decodePassword(java.lang.String tablePass)
Decode/Decrypt password |
java.lang.String |
encodePassword(java.lang.String userPass)
Encode/Encrypt password |
java.lang.String |
getName()
Gets the name of this instance |
java.lang.String |
getPasswordFormatDescription(java.util.Locale locale)
Gets the short text description of the acceptable password format |
boolean |
hasPasswordExpired(long lastChangedTime)
Returns true if the password has expired (time for new password) |
boolean |
validateNewPassword(java.lang.String newPass)
Returns true if the new password adheres to the password policy |
Method Detail |
---|
java.lang.String getName()
java.lang.String encodePassword(java.lang.String userPass)
userPass
- Password to encode/encrypt
java.lang.String decodePassword(java.lang.String tablePass)
tablePass
- Password to decode/decrypt
boolean checkPassword(java.lang.String enteredPass, java.lang.String tablePass)
enteredPass
- User entered passwordtablePass
- The password saved in the table (possibly encrypted)
boolean validateNewPassword(java.lang.String newPass)
newPass
- The new password candidate
java.lang.String getPasswordFormatDescription(java.util.Locale locale)
locale
- The language locale
boolean hasPasswordExpired(long lastChangedTime)
lastChangedTime
- Time of last password change
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |