org.apache.jetspeed.security
Interface PasswordCredential
- public interface PasswordCredential
PasswordCredential
- Version:
- $Id: PasswordCredential.java 188527 2005-04-24 12:33:49Z ate $
- Author:
- Ate Douma
PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY
public static final String PASSWORD_CREDENTIAL_DAYS_VALID_REQUEST_ATTR_KEY
getUserName
public String getUserName()
- Returns:
- The username.
getPassword
public char[] getPassword()
- Returns:
- The password.
isUpdateRequired
public boolean isUpdateRequired()
- Returns:
- true if update required.
isEnabled
public boolean isEnabled()
- Returns:
- true if enabled.
isExpired
public boolean isExpired()
- Returns:
- true if expired.
getExpirationDate
public Date getExpirationDate()
- Returns:
- when the password is (going to be) expired.
getPreviousAuthenticationDate
public Timestamp getPreviousAuthenticationDate()
- Returns:
- the previous time the user logged in
getLastAuthenticationDate
public Timestamp getLastAuthenticationDate()
- Returns:
- the last time the user logged in
getAuthenticationFailures
public 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-2005 Apache Software Foundation. All Rights Reserved.