|
|||||||||||
| 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
CredentialHandler| Field Summary | |
private InternalPasswordCredentialInterceptor |
ipcInterceptor
|
private static org.apache.commons.logging.Log |
log
|
private PasswordCredentialProvider |
pcProvider
|
private SecurityAccess |
securityAccess
|
| Constructor Summary | |
DefaultCredentialHandler(SecurityAccess securityAccess,
PasswordCredentialProvider pcProvider,
InternalPasswordCredentialInterceptor ipcInterceptor)
|
|
| Method Summary | |
boolean |
authenticate(String userName,
String password)
Authenticate a user. |
private org.apache.jetspeed.security.om.InternalCredential |
getPasswordCredential(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser,
String username)
|
Set |
getPrivateCredentials(String username)
Gets the private credentials for the user. |
Set |
getPublicCredentials(String username)
Gets the public credentials for the user. |
void |
setPassword(String userName,
String oldPassword,
String newPassword)
Adds or updates a private password credential. If oldPassword is not null, the oldPassword will first be checked (authenticated). |
void |
setPasswordEnabled(String userName,
boolean enabled)
Set the enabled state of the user password credential. |
void |
setPasswordExpiration(String userName,
Date expirationDate)
Set the expiration date and the expired flag of the password credential. |
void |
setPasswordUpdateRequired(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 |
| Field Detail |
private static final org.apache.commons.logging.Log log
private SecurityAccess securityAccess
private PasswordCredentialProvider pcProvider
private InternalPasswordCredentialInterceptor ipcInterceptor
| Constructor Detail |
public DefaultCredentialHandler(SecurityAccess securityAccess,
PasswordCredentialProvider pcProvider,
InternalPasswordCredentialInterceptor ipcInterceptor)
| Method Detail |
public Set getPrivateCredentials(String username)
CredentialHandlerGets the private credentials for the user.
getPrivateCredentials in interface CredentialHandlerusername - The username.
CredentialHandler.getPrivateCredentials(java.lang.String)public Set getPublicCredentials(String username)
CredentialHandlerGets the public credentials for the user.
getPublicCredentials in interface CredentialHandlerusername - The username.
CredentialHandler.getPublicCredentials(java.lang.String)
private org.apache.jetspeed.security.om.InternalCredential getPasswordCredential(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser,
String username)
public void setPassword(String userName,
String oldPassword,
String newPassword)
throws org.apache.jetspeed.security.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.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.CredentialHandler.setPassword(java.lang.String,java.lang.String,java.lang.String)
public void setPasswordEnabled(String userName,
boolean enabled)
throws org.apache.jetspeed.security.SecurityException
CredentialHandlerSet the enabled state of the user password credential.
setPasswordEnabled in interface CredentialHandleruserName - The user name.enabled - The enabled state.
org.apache.jetspeed.security.SecurityExceptionCredentialHandler.setPasswordEnabled(java.lang.String, boolean)
public void setPasswordUpdateRequired(String userName,
boolean updateRequired)
throws org.apache.jetspeed.security.SecurityException
CredentialHandlerSet the update required state of the user password credential.
setPasswordUpdateRequired in interface CredentialHandleruserName - The user name.updateRequired - The update required state.
org.apache.jetspeed.security.SecurityExceptionCredentialHandler.setPasswordUpdateRequired(java.lang.String, boolean)
public void setPasswordExpiration(String userName,
Date expirationDate)
throws org.apache.jetspeed.security.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.
org.apache.jetspeed.security.SecurityExceptionCredentialHandler.setPasswordExpiration(java.lang.String, java.sql.Date)
public boolean authenticate(String userName,
String password)
throws org.apache.jetspeed.security.SecurityException
CredentialHandlerAuthenticate a user.
authenticate in interface CredentialHandleruserName - The user name.password - The user password.
org.apache.jetspeed.security.SecurityExceptionCredentialHandler.authenticate(java.lang.String, java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||