|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.security.impl.AuthenticationProviderProxyImpl
AuthenticationProviderProxy| Field Summary | |
private List |
authenticationProviders
The list of AuthenticationProvider. |
private String |
defaultAuthenticationProvider
The default authentication provider name. |
| Constructor Summary | |
AuthenticationProviderProxyImpl(List authenticationProviders,
String defaultAuthenticationProvider)
Constructor given a list of AuthenticationProvider. |
|
| Method Summary | |
void |
addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
Adds a new user principal in the backing store. |
void |
addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
Adds a new user principal in a given authentication provider. |
boolean |
authenticate(String userName,
String password)
Authenticate a user. |
boolean |
authenticate(String userName,
String password,
String authenticationProvider)
Authenticate a user in a given authentication provider |
String |
getAuthenticationProvider(String userName)
Returns the authentication provider of a user principal. |
protected AuthenticationProvider |
getAuthenticationProviderByName(String providerName)
|
String |
getDefaultAuthenticationProvider()
Returns the default authentication provider. |
Set |
getPrivateCredentials(String username)
Gets the private credentials for the user. |
Set |
getPublicCredentials(String username)
Gets the public credentials for the user. |
Principal |
getUserPrincipal(String username)
Gets the user principal for the given user name. |
List |
getUserPrincipals(String filter)
Gets the an iterator of user principals for a given filter. |
boolean |
isUserPrincipal(String userName)
Checks if a UserPrincipal exists |
void |
removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
Removes the user principal. |
void |
removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
Remove user principal in a given authentication provider. |
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 |
setPassword(String userName,
String oldPassword,
String newPassword,
String authenticationProvider)
Adds or updates a private password credential in a given authentication provider. 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 |
setPasswordEnabled(String userName,
boolean enabled,
String authenticationProvider)
Set the enabled state of the user password credential in a given authentication provider. |
void |
setPasswordExpiration(String userName,
Date expirationDate)
Set the expiration date and the expired flag of the password credential. |
void |
setPasswordExpiration(String userName,
Date expirationDate,
String authenticationProvider)
Set the expiration date and the expired flag of the password credential in a given authentication provider |
void |
setPasswordUpdateRequired(String userName,
boolean updateRequired)
Set the update required state of the user password credential. |
void |
setPasswordUpdateRequired(String userName,
boolean updateRequired,
String authenticationProvider)
Set the update required state of the user password credential in a given authentication provider. |
void |
updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
Updates the user principal in the backing store. |
void |
updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
Updates user principal in a given authentication provider. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private List authenticationProviders
AuthenticationProvider.
private String defaultAuthenticationProvider
| Constructor Detail |
public AuthenticationProviderProxyImpl(List authenticationProviders,
String defaultAuthenticationProvider)
Constructor given a list of AuthenticationProvider.
authenticationProviders - The list of AuthenticationProvider.defaultAuthenticationProvider - The default authentication provider name.| Method Detail |
protected AuthenticationProvider getAuthenticationProviderByName(String providerName)
public String getDefaultAuthenticationProvider()
AuthenticationProviderProxyReturns the default authentication provider.
getDefaultAuthenticationProvider in interface AuthenticationProviderProxyAuthenticationProviderProxy.getDefaultAuthenticationProvider()public String getAuthenticationProvider(String userName)
AuthenticationProviderProxyReturns the authentication provider of a user principal.
getAuthenticationProvider in interface AuthenticationProviderProxyuserName -
AuthenticationProviderProxy.getAuthenticationProvider(java.lang.String)public boolean isUserPrincipal(String userName)
UserSecurityHandlerChecks if a UserPrincipal exists
isUserPrincipal in interface UserSecurityHandleruserName -
UserSecurityHandler.isUserPrincipal(java.lang.String)public Principal getUserPrincipal(String username)
UserSecurityHandlerGets the user principal for the given user name.
getUserPrincipal in interface UserSecurityHandlerusername - The user name.
Principal- See Also:
UserSecurityHandler.getUserPrincipal(java.lang.String)public List getUserPrincipals(String filter)
UserSecurityHandlerGets the an iterator of user principals for a given filter.
getUserPrincipals in interface UserSecurityHandlerfilter - The filter.
PrincipalUserSecurityHandler.getUserPrincipals(java.lang.String)
public void addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxyAdds a new user principal in a given authentication provider.
addUserPrincipal in interface AuthenticationProviderProxyuserPrincipal - The new user principal.authenticationProvider - The authentication provider name.
org.apache.jetspeed.security.SecurityExceptionAuthenticationProviderProxy.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
public void addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
UserSecurityHandlerAdds a new user principal in the backing store.
addUserPrincipal in interface UserSecurityHandleruserPrincipal - The new UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.UserSecurityHandler.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public void updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxyUpdates user principal in a given authentication provider.
updateUserPrincipal in interface AuthenticationProviderProxyuserPrincipal - The user principal.authenticationProvider - The authentication provider name.
org.apache.jetspeed.security.SecurityExceptionAuthenticationProviderProxy.updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
public void updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
UserSecurityHandlerUpdates the user principal in the backing store.
updateUserPrincipal in interface UserSecurityHandleruserPrincipal - The UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.UserSecurityHandler.updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public void removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxyRemove user principal in a given authentication provider.
removeUserPrincipal in interface AuthenticationProviderProxyuserPrincipal - The user principal.authenticationProvider - The authentication provider name.
org.apache.jetspeed.security.SecurityExceptionAuthenticationProviderProxy.removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
public void removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
UserSecurityHandlerRemoves the user principal.
removeUserPrincipal in interface UserSecurityHandleruserPrincipal - The UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.UserSecurityHandler.removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal)public Set getPublicCredentials(String username)
CredentialHandlerGets the public credentials for the user.
getPublicCredentials in interface CredentialHandlerusername - The username.
CredentialHandler.getPublicCredentials(java.lang.String)
public void setPassword(String userName,
String oldPassword,
String newPassword,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy
Adds or updates a private password credential in a given authentication provider.
If oldPassword is not null, the oldPassword will first be checked (authenticated).
setPassword in interface AuthenticationProviderProxyoldPassword - The old password value.newPassword - The new password value.authenticationProvider - The authentication provider name.
org.apache.jetspeed.security.SecurityExceptionAuthenticationProviderProxy.setPassword(String, String, String, String)
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 Set getPrivateCredentials(String username)
CredentialHandlerGets the private credentials for the user.
getPrivateCredentials in interface CredentialHandlerusername - The username.
CredentialHandler.getPrivateCredentials(java.lang.String)
public void setPasswordEnabled(String userName,
boolean enabled,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxySet the enabled state of the user password credential in a given authentication provider.
setPasswordEnabled in interface AuthenticationProviderProxyuserName - The user name.enabled - The enabled state.authenticationProvider - The authentication provider name.
org.apache.jetspeed.security.SecurityExceptionAuthenticationProviderProxy.setPasswordEnabled(java.lang.String, boolean, 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,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxySet the update required state of the user password credential in a given authentication provider.
setPasswordUpdateRequired in interface AuthenticationProviderProxyuserName - The user name.updateRequired - The update required state.authenticationProvider - The authentication provider name.
org.apache.jetspeed.security.SecurityExceptionAuthenticationProviderProxy.setPasswordUpdateRequired(java.lang.String, boolean, java.lang.String)
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,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxySet the expiration date and the expired flag of the password credential in a given authentication provider
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 AuthenticationProviderProxyuserName - The user name.expirationDate - The expiration date to set.authenticationProvider - The authentication provider name.
org.apache.jetspeed.security.SecurityExceptionAuthenticationProviderProxy.setPasswordExpiration(java.lang.String, java.sql.Date, java.lang.String)
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,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxyAuthenticate a user in a given authentication provider
authenticate in interface AuthenticationProviderProxyuserName - The user name.password - The user password.authenticationProvider - The authentication provider name.
org.apache.jetspeed.security.SecurityExceptionAuthenticationProviderProxy.authenticate(String, String, String)
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 | ||||||||||