| org.apache.jetspeed.security.spi.CredentialHandler
All known Subclasses: org.apache.jetspeed.security.spi.impl.DefaultCredentialHandler, org.apache.jetspeed.security.spi.impl.LdapCredentialHandler,
CredentialHandler | public interface CredentialHandler (Code) | |
This interface encapsulates the handling of security credentials.
This provides a central placeholder for changing the mapping of user
credentials. The default implementation only supports PasswordCredential
A security implementation wanting to map additional credentials should do so
here.
author: David Le Strat |
authenticate | boolean authenticate(String userName, String password) throws SecurityException(Code) | |
Authenticate a user.
Parameters: userName - The user name. Parameters: password - The user password. Whether or not a user is authenticated. |
getPrivateCredentials | Set getPrivateCredentials(String username)(Code) | |
Gets the private credentials for the user.
Parameters: username - The username. The set of private credentials. |
getPublicCredentials | Set getPublicCredentials(String username)(Code) | |
Gets the public credentials for the user.
Parameters: username - The username. The set of public credentials. |
importPassword | void importPassword(String userName, String newPassword) throws SecurityException(Code) | |
Adds or updates a private password credential.
Note that there is no checking of the oldPassword and the provided password is
assumed to be encoded. Hence no encoding will take place.
Parameters: username - The user to be updated. Parameters: newPassword - The new password. throws: SecurityException - Throws a SecurityException. |
setPassword | void setPassword(String userName, String oldPassword, String newPassword) throws SecurityException(Code) | |
Adds or updates a private password credential.
If oldPassword is not null, the oldPassword will first be checked (authenticated).
Parameters: username - The user to be updated. Parameters: oldPassword - The old password. Parameters: newPassword - The new password. throws: SecurityException - Throws a SecurityException. |
setPasswordEnabled | void setPasswordEnabled(String userName, boolean enabled) throws SecurityException(Code) | |
Set the enabled state of the user password credential.
Parameters: userName - The user name. Parameters: enabled - The enabled state. throws: Throws - a security exception. |
setPasswordExpiration | void setPasswordExpiration(String userName, Date expirationDate) throws SecurityException(Code) | |
Set the expiration date and the expired flag of the password credential.
If a date equal or before the current date is provided, the expired flag will be set to true,
otherwise to false.
Parameters: userName - The user name. Parameters: expirationDate - The expiration date to set. throws: Throws - a security exception. |
setPasswordUpdateRequired | void setPasswordUpdateRequired(String userName, boolean updateRequired) throws SecurityException(Code) | |
Set the update required state of the user password credential.
Parameters: userName - The user name. Parameters: updateRequired - The update required state. throws: Throws - a security exception. |
|
|