org.apache.jetspeed.security
Interface PasswordCredential
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 String PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY
getUserName
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
Date getExpirationDate()
- Returns:
- when the password is (going to be) expired.
getPreviousAuthenticationDate
Timestamp getPreviousAuthenticationDate()
- Returns:
- the previous time the user logged in
getLastAuthenticationDate
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-2007 Apache Software Foundation. All Rights Reserved.