public interface PasswordCredential extends UserCredential
PasswordCredential
Modifier and Type | Field and Description |
---|---|
static String |
PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY |
static Short |
TYPE_CURRENT |
static Short |
TYPE_HISTORICAL |
Modifier and Type | Method and Description |
---|---|
void |
clearNewPasswordSet() |
String |
getNewPassword() |
String |
getOldPassword() |
String |
getPassword() |
Short |
getType() |
User |
getUser() |
boolean |
isEncoded() |
boolean |
isNew() |
boolean |
isNewPasswordSet() |
boolean |
isStateReadOnly() |
void |
revertNewPasswordSet() |
void |
setAuthenticationFailures(int authenticationFailures) |
void |
setEnabled(boolean enabled) |
void |
setEncoded(boolean encoded) |
void |
setExpirationDate(Date expirationDate) |
void |
setExpired(boolean expired) |
void |
setLastAuthenticationDate(Timestamp date) |
void |
setPassword(String password,
boolean encoded)
Set a new raw (possibly encoded) password
|
void |
setPassword(String oldPassword,
String newPassword)
Set a new unencoded password and providing the old (unencoded) password for validation
|
void |
setPreviousAuthenticationDate(Timestamp date) |
void |
setUpdateRequired(boolean updateRequired) |
getAuthenticationFailures, getCreationDate, getExpirationDate, getLastAuthenticationDate, getModifiedDate, getPreviousAuthenticationDate, getUserName, isEnabled, isExpired, isUpdateAllowed, isUpdateRequired, synchronize
static final String PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY
static final Short TYPE_CURRENT
static final Short TYPE_HISTORICAL
boolean isNew()
User getUser()
Short getType()
String getPassword()
String getOldPassword()
String getNewPassword()
void setPassword(String password, boolean encoded)
password
- encoded
- void setPassword(String oldPassword, String newPassword)
Depending on the implementation one or more pluggable validation and processing handlers might be invoked when the PasswordCredential is stored.
A User changing its own password should be required to provide an oldPassword to validate against and might trigger different processing than when a null value is provided for the oldPassword
oldPassword
- newPassword
- boolean isNewPasswordSet()
void clearNewPasswordSet()
void revertNewPasswordSet()
boolean isEncoded()
void setEncoded(boolean encoded)
void setUpdateRequired(boolean updateRequired)
boolean isStateReadOnly()
void setEnabled(boolean enabled)
void setExpired(boolean expired)
void setExpirationDate(Date expirationDate)
void setPreviousAuthenticationDate(Timestamp date)
void setLastAuthenticationDate(Timestamp date)
void setAuthenticationFailures(int authenticationFailures)
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.