org.apache.jetspeed.security
Interface PasswordCredential
- All Known Implementing Classes:
- DefaultPasswordCredentialImpl
public interface PasswordCredential
PasswordCredential
- Version:
- $Id: PasswordCredential.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- Ate Douma
PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY
static final java.lang.String PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY
getUserName
java.lang.String getUserName()
- Returns:
- The username.
getPassword
char[] getPassword()
- Returns:
- The password.
isUpdateRequired
boolean isUpdateRequired()
- Returns:
- true if update required.
isEnabled
boolean isEnabled()
- Returns:
- true if enabled.
isExpired
boolean isExpired()
- Returns:
- true if expired.
getExpirationDate
java.sql.Date getExpirationDate()
- Returns:
- when the password is (going to be) expired.
getPreviousAuthenticationDate
java.sql.Timestamp getPreviousAuthenticationDate()
- Returns:
- the previous time the user logged in
getLastAuthenticationDate
java.sql.Timestamp getLastAuthenticationDate()
- Returns:
- the last time the user logged in
getAuthenticationFailures
int getAuthenticationFailures()
Getter for the current number of authentication failures in a row.
- -1: never tried yet
- 0: none, or last attempt was successful
- >0: number of failures
- Returns:
- The number of authentication failures
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.