|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.spi.impl.DefaultPasswordCredentialImpl
public class DefaultPasswordCredentialImpl
Default Password credential implementation. Provides the same mechanism as J2EE
javax.resource.spi.security.PasswordCredential.
Code borrowed from the Geronimo project.
| Field Summary | |
|---|---|
private int |
authenticationFailures
The number of authentication failures |
private boolean |
enabled
The enabled state. |
private Date |
expirationDate
The expiration date. |
private boolean |
expired
The expired state. |
private Timestamp |
lastAuthenticationDate
The last authentication in date |
private char[] |
password
The password. |
private Timestamp |
previousAuthenticationDate
The previous authentication in date |
private static long |
serialVersionUID
The default uid. |
private boolean |
updateRequired
The update required state |
private String |
userName
The user name. |
| Fields inherited from interface org.apache.jetspeed.security.PasswordCredential |
|---|
PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY |
| Constructor Summary | |
|---|---|
DefaultPasswordCredentialImpl(String userName,
char[] password)
|
|
DefaultPasswordCredentialImpl(String userName,
org.apache.jetspeed.security.om.InternalCredential credential)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getAuthenticationFailures()
|
Date |
getExpirationDate()
|
Timestamp |
getLastAuthenticationDate()
|
char[] |
getPassword()
|
Timestamp |
getPreviousAuthenticationDate()
|
String |
getUserName()
|
int |
hashCode()
|
boolean |
isEnabled()
|
boolean |
isExpired()
|
boolean |
isUpdateRequired()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private String userName
private char[] password
private boolean updateRequired
private boolean enabled
private boolean expired
private Date expirationDate
private Timestamp previousAuthenticationDate
private Timestamp lastAuthenticationDate
private int authenticationFailures
| Constructor Detail |
|---|
public DefaultPasswordCredentialImpl(String userName,
char[] password)
userName - password -
public DefaultPasswordCredentialImpl(String userName,
org.apache.jetspeed.security.om.InternalCredential credential)
| Method Detail |
|---|
public String getUserName()
getUserName in interface org.apache.jetspeed.security.PasswordCredentialpublic char[] getPassword()
getPassword in interface org.apache.jetspeed.security.PasswordCredentialpublic boolean isUpdateRequired()
isUpdateRequired in interface org.apache.jetspeed.security.PasswordCredentialPasswordCredential.isUpdateRequired()public boolean isEnabled()
isEnabled in interface org.apache.jetspeed.security.PasswordCredentialPasswordCredential.isEnabled()public boolean isExpired()
isExpired in interface org.apache.jetspeed.security.PasswordCredentialPasswordCredential.isExpired()public Date getExpirationDate()
getExpirationDate in interface org.apache.jetspeed.security.PasswordCredentialPasswordCredential.getExpirationDate()public Timestamp getPreviousAuthenticationDate()
getPreviousAuthenticationDate in interface org.apache.jetspeed.security.PasswordCredentialPasswordCredential.getPreviousAuthenticationDate()public Timestamp getLastAuthenticationDate()
getLastAuthenticationDate in interface org.apache.jetspeed.security.PasswordCredentialPasswordCredential.getLastAuthenticationDate()public int getAuthenticationFailures()
getAuthenticationFailures in interface org.apache.jetspeed.security.PasswordCredentialPasswordCredential.getAuthenticationFailures()public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||