|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.security.spi.impl.DefaultCredentialHandler
public class DefaultCredentialHandler
CredentialHandler| Constructor Summary | |
|---|---|
DefaultCredentialHandler(SecurityAccess securityAccess,
PasswordCredentialProvider pcProvider,
InternalPasswordCredentialInterceptor ipcInterceptor)
|
|
| Method Summary | |
|---|---|
boolean |
authenticate(java.lang.String userName,
java.lang.String password)
Authenticate a user. |
java.util.Set |
getPrivateCredentials(java.lang.String username)
Gets the private credentials for the user. |
java.util.Set |
getPublicCredentials(java.lang.String username)
Gets the public credentials for the user. |
void |
importPassword(java.lang.String userName,
java.lang.String newPassword)
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. |
void |
setPassword(java.lang.String userName,
java.lang.String oldPassword,
java.lang.String newPassword)
Adds or updates a private password credential. If oldPassword is not null, the oldPassword will first be checked (authenticated). |
protected void |
setPassword(java.lang.String userName,
java.lang.String oldPassword,
java.lang.String newPassword,
boolean raw)
|
void |
setPasswordEnabled(java.lang.String userName,
boolean enabled)
Set the enabled state of the user password credential. |
void |
setPasswordExpiration(java.lang.String userName,
java.sql.Date expirationDate)
Set the expiration date and the expired flag of the password credential. |
void |
setPasswordUpdateRequired(java.lang.String userName,
boolean updateRequired)
Set the update required state of the user password credential. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCredentialHandler(SecurityAccess securityAccess,
PasswordCredentialProvider pcProvider,
InternalPasswordCredentialInterceptor ipcInterceptor)
| Method Detail |
|---|
public java.util.Set getPrivateCredentials(java.lang.String username)
CredentialHandlerGets the private credentials for the user.
getPrivateCredentials in interface CredentialHandlerusername - The username.
CredentialHandler.getPrivateCredentials(java.lang.String)public java.util.Set getPublicCredentials(java.lang.String username)
CredentialHandlerGets the public credentials for the user.
getPublicCredentials in interface CredentialHandlerusername - The username.
CredentialHandler.getPublicCredentials(java.lang.String)
public void setPassword(java.lang.String userName,
java.lang.String oldPassword,
java.lang.String newPassword)
throws SecurityException
CredentialHandler
Adds or updates a private password credential.
If oldPassword is not null, the oldPassword will first be checked (authenticated).
setPassword in interface CredentialHandleroldPassword - The old password.newPassword - The new password.
SecurityException - Throws a SecurityException.CredentialHandler.setPassword(java.lang.String,java.lang.String,java.lang.String)
public void importPassword(java.lang.String userName,
java.lang.String newPassword)
throws SecurityException
CredentialHandler
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.
importPassword in interface CredentialHandlernewPassword - The new password.
SecurityException - Throws a SecurityException.CredentialHandler.importPassword(java.lang.String,java.lang.String)
protected void setPassword(java.lang.String userName,
java.lang.String oldPassword,
java.lang.String newPassword,
boolean raw)
throws SecurityException
SecurityExceptionorg.apache.jetspeed.security.spi.CredentialHandler#setPassword(java.lang.String,java.lang.String,java.lang.String, boolean)
public void setPasswordEnabled(java.lang.String userName,
boolean enabled)
throws SecurityException
CredentialHandlerSet the enabled state of the user password credential.
setPasswordEnabled in interface CredentialHandleruserName - The user name.enabled - The enabled state.
SecurityExceptionCredentialHandler.setPasswordEnabled(java.lang.String, boolean)
public void setPasswordUpdateRequired(java.lang.String userName,
boolean updateRequired)
throws SecurityException
CredentialHandlerSet the update required state of the user password credential.
setPasswordUpdateRequired in interface CredentialHandleruserName - The user name.updateRequired - The update required state.
SecurityExceptionCredentialHandler.setPasswordUpdateRequired(java.lang.String, boolean)
public void setPasswordExpiration(java.lang.String userName,
java.sql.Date expirationDate)
throws SecurityException
CredentialHandlerSet 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.
setPasswordExpiration in interface CredentialHandleruserName - The user name.expirationDate - The expiration date to set.
SecurityExceptionCredentialHandler.setPasswordExpiration(java.lang.String, java.sql.Date)
public boolean authenticate(java.lang.String userName,
java.lang.String password)
throws SecurityException
CredentialHandlerAuthenticate a user.
authenticate in interface CredentialHandleruserName - The user name.password - The user password.
SecurityExceptionCredentialHandler.authenticate(java.lang.String, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||