|
|||||||||||
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()
AuthenticationProviderProxy
Returns the default authentication provider.
getDefaultAuthenticationProvider
in interface AuthenticationProviderProxy
AuthenticationProviderProxy.getDefaultAuthenticationProvider()
public String getAuthenticationProvider(String userName)
AuthenticationProviderProxy
Returns the authentication provider of a user principal.
getAuthenticationProvider
in interface AuthenticationProviderProxy
userName
-
AuthenticationProviderProxy.getAuthenticationProvider(java.lang.String)
public boolean isUserPrincipal(String userName)
UserSecurityHandler
Checks if a UserPrincipal exists
isUserPrincipal
in interface UserSecurityHandler
userName
-
UserSecurityHandler.isUserPrincipal(java.lang.String)
public Principal getUserPrincipal(String username)
UserSecurityHandler
Gets the user principal for the given user name.
getUserPrincipal
in interface UserSecurityHandler
username
- The user name.
Principal- See Also:
UserSecurityHandler.getUserPrincipal(java.lang.String)
public List getUserPrincipals(String filter)
UserSecurityHandler
Gets the an iterator of user principals for a given filter.
getUserPrincipals
in interface UserSecurityHandler
filter
- The filter.
Principal
UserSecurityHandler.getUserPrincipals(java.lang.String)
public void addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal, String authenticationProvider) throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy
Adds a new user principal in a given authentication provider.
addUserPrincipal
in interface AuthenticationProviderProxy
userPrincipal
- The new user principal.authenticationProvider
- The authentication provider name.
org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
public void addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal) throws org.apache.jetspeed.security.SecurityException
UserSecurityHandler
Adds a new user principal in the backing store.
addUserPrincipal
in interface UserSecurityHandler
userPrincipal
- 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
AuthenticationProviderProxy
Updates user principal in a given authentication provider.
updateUserPrincipal
in interface AuthenticationProviderProxy
userPrincipal
- The user principal.authenticationProvider
- The authentication provider name.
org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy.updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
public void updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal) throws org.apache.jetspeed.security.SecurityException
UserSecurityHandler
Updates the user principal in the backing store.
updateUserPrincipal
in interface UserSecurityHandler
userPrincipal
- 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
AuthenticationProviderProxy
Remove user principal in a given authentication provider.
removeUserPrincipal
in interface AuthenticationProviderProxy
userPrincipal
- The user principal.authenticationProvider
- The authentication provider name.
org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy.removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
public void removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal) throws org.apache.jetspeed.security.SecurityException
UserSecurityHandler
Removes the user principal.
removeUserPrincipal
in interface UserSecurityHandler
userPrincipal
- The UserPrincipal
.
org.apache.jetspeed.security.SecurityException
- Throws a SecurityException
.UserSecurityHandler.removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
public Set getPublicCredentials(String username)
CredentialHandler
Gets the public credentials for the user.
getPublicCredentials
in interface CredentialHandler
username
- 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 AuthenticationProviderProxy
oldPassword
- The old password value.newPassword
- The new password value.authenticationProvider
- The authentication provider name.
org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy.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 CredentialHandler
oldPassword
- 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)
CredentialHandler
Gets the private credentials for the user.
getPrivateCredentials
in interface CredentialHandler
username
- The username.
CredentialHandler.getPrivateCredentials(java.lang.String)
public void setPasswordEnabled(String userName, boolean enabled, String authenticationProvider) throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy
Set the enabled state of the user password credential in a given authentication provider.
setPasswordEnabled
in interface AuthenticationProviderProxy
userName
- The user name.enabled
- The enabled state.authenticationProvider
- The authentication provider name.
org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy.setPasswordEnabled(java.lang.String, boolean, java.lang.String)
public void setPasswordEnabled(String userName, boolean enabled) throws org.apache.jetspeed.security.SecurityException
CredentialHandler
Set the enabled state of the user password credential.
setPasswordEnabled
in interface CredentialHandler
userName
- The user name.enabled
- The enabled state.
org.apache.jetspeed.security.SecurityException
CredentialHandler.setPasswordEnabled(java.lang.String, boolean)
public void setPasswordUpdateRequired(String userName, boolean updateRequired, String authenticationProvider) throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy
Set the update required state of the user password credential in a given authentication provider.
setPasswordUpdateRequired
in interface AuthenticationProviderProxy
userName
- The user name.updateRequired
- The update required state.authenticationProvider
- The authentication provider name.
org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy.setPasswordUpdateRequired(java.lang.String, boolean, java.lang.String)
public void setPasswordUpdateRequired(String userName, boolean updateRequired) throws org.apache.jetspeed.security.SecurityException
CredentialHandler
Set the update required state of the user password credential.
setPasswordUpdateRequired
in interface CredentialHandler
userName
- The user name.updateRequired
- The update required state.
org.apache.jetspeed.security.SecurityException
CredentialHandler.setPasswordUpdateRequired(java.lang.String, boolean)
public void setPasswordExpiration(String userName, Date expirationDate, String authenticationProvider) throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy
Set 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 AuthenticationProviderProxy
userName
- The user name.expirationDate
- The expiration date to set.authenticationProvider
- The authentication provider name.
org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy.setPasswordExpiration(java.lang.String, java.sql.Date, java.lang.String)
public void setPasswordExpiration(String userName, Date expirationDate) throws org.apache.jetspeed.security.SecurityException
CredentialHandler
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.
setPasswordExpiration
in interface CredentialHandler
userName
- The user name.expirationDate
- The expiration date to set.
org.apache.jetspeed.security.SecurityException
CredentialHandler.setPasswordExpiration(java.lang.String, java.sql.Date)
public boolean authenticate(String userName, String password, String authenticationProvider) throws org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy
Authenticate a user in a given authentication provider
authenticate
in interface AuthenticationProviderProxy
userName
- The user name.password
- The user password.authenticationProvider
- The authentication provider name.
org.apache.jetspeed.security.SecurityException
AuthenticationProviderProxy.authenticate(String, String, String)
public boolean authenticate(String userName, String password) throws org.apache.jetspeed.security.SecurityException
CredentialHandler
Authenticate a user.
authenticate
in interface CredentialHandler
userName
- The user name.password
- The user password.
org.apache.jetspeed.security.SecurityException
CredentialHandler.authenticate(java.lang.String, java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |