|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PasswordCredential
PasswordCredential
Field Summary | |
---|---|
static java.lang.String |
PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY
|
static java.lang.Short |
TYPE_CURRENT
|
static java.lang.Short |
TYPE_HISTORICAL
|
Method Summary | |
---|---|
void |
clearNewPasswordSet()
|
java.lang.String |
getNewPassword()
|
java.lang.String |
getOldPassword()
|
java.lang.String |
getPassword()
|
java.lang.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(java.sql.Date expirationDate)
|
void |
setExpired(boolean expired)
|
void |
setLastAuthenticationDate(java.sql.Timestamp date)
|
void |
setPassword(java.lang.String password,
boolean encoded)
Set a new raw (possibly encoded) password |
void |
setPassword(java.lang.String oldPassword,
java.lang.String newPassword)
Set a new unencoded password and providing the old (unencoded) password for validation |
void |
setPreviousAuthenticationDate(java.sql.Timestamp date)
|
void |
setUpdateRequired(boolean updateRequired)
|
Methods inherited from interface org.apache.jetspeed.security.UserCredential |
---|
getAuthenticationFailures, getCreationDate, getExpirationDate, getLastAuthenticationDate, getModifiedDate, getPreviousAuthenticationDate, getUserName, isEnabled, isExpired, isUpdateAllowed, isUpdateRequired, synchronize |
Field Detail |
---|
static final java.lang.String PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY
static final java.lang.Short TYPE_CURRENT
static final java.lang.Short TYPE_HISTORICAL
Method Detail |
---|
boolean isNew()
User getUser()
java.lang.Short getType()
java.lang.String getPassword()
java.lang.String getOldPassword()
java.lang.String getNewPassword()
void setPassword(java.lang.String password, boolean encoded)
password
- encoded
- void setPassword(java.lang.String oldPassword, java.lang.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(java.sql.Date expirationDate)
void setPreviousAuthenticationDate(java.sql.Timestamp date)
void setLastAuthenticationDate(java.sql.Timestamp date)
void setAuthenticationFailures(int authenticationFailures)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |