This project has retired. For details please refer to its
Attic page .
AuthenticationProviderProxyImpl (Jetspeed-2 Security Components 2.1.3 API)
org.apache.jetspeed.security.impl
Class AuthenticationProviderProxyImpl
java.lang.Object
org.apache.jetspeed.security.impl.AuthenticationProviderProxyImpl
All Implemented Interfaces: org.apache.jetspeed.security.AuthenticationProviderProxy, org.apache.jetspeed.security.spi.CredentialHandler, org.apache.jetspeed.security.spi.UserSecurityHandler
public class AuthenticationProviderProxyImpl extends Object implements org.apache.jetspeed.security.AuthenticationProviderProxy
Author:
David Le Strat
See Also: AuthenticationProviderProxy
Method Summary
void
addUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal)
void
addUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
boolean
authenticate (String userName,
String password)
boolean
authenticate (String userName,
String password,
String authenticationProvider)
String
getAuthenticationProvider (String userName)
protected org.apache.jetspeed.security.AuthenticationProvider
getAuthenticationProviderByName (String providerName)
String
getDefaultAuthenticationProvider ()
Set
getPrivateCredentials (String username)
Set
getPublicCredentials (String username)
Principal
getUserPrincipal (String username)
List
getUserPrincipals (String filter)
void
importPassword (String userName,
String newPassword)
void
importPassword (String userName,
String newPassword,
String authenticationProvider)
boolean
isUserPrincipal (String userName)
void
removeUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal)
void
removeUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
void
setPassword (String userName,
String oldPassword,
String newPassword)
void
setPassword (String userName,
String oldPassword,
String newPassword,
String authenticationProvider)
void
setPasswordEnabled (String userName,
boolean enabled)
void
setPasswordEnabled (String userName,
boolean enabled,
String authenticationProvider)
void
setPasswordExpiration (String userName,
Date expirationDate)
void
setPasswordExpiration (String userName,
Date expirationDate,
String authenticationProvider)
void
setPasswordUpdateRequired (String userName,
boolean updateRequired)
void
setPasswordUpdateRequired (String userName,
boolean updateRequired,
String authenticationProvider)
void
updateUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal)
void
updateUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
authenticationProviders
private List authenticationProviders
The list of AuthenticationProvider
.
defaultAuthenticationProvider
private String defaultAuthenticationProvider
The default authentication provider name.
AuthenticationProviderProxyImpl
public AuthenticationProviderProxyImpl (List authenticationProviders,
String defaultAuthenticationProvider)
Constructor given a list of AuthenticationProvider
.
Parameters: authenticationProviders
- The list of AuthenticationProvider
.defaultAuthenticationProvider
- The default authentication provider name.
getAuthenticationProviderByName
protected org.apache.jetspeed.security.AuthenticationProvider getAuthenticationProviderByName (String providerName)
getDefaultAuthenticationProvider
public String getDefaultAuthenticationProvider ()
Specified by: getDefaultAuthenticationProvider
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
See Also: AuthenticationProviderProxy.getDefaultAuthenticationProvider()
getAuthenticationProvider
public String getAuthenticationProvider (String userName)
Specified by: getAuthenticationProvider
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
See Also: AuthenticationProviderProxy.getAuthenticationProvider(java.lang.String)
isUserPrincipal
public boolean isUserPrincipal (String userName)
Specified by: isUserPrincipal
in interface org.apache.jetspeed.security.spi.UserSecurityHandler
See Also: UserSecurityHandler.isUserPrincipal(java.lang.String)
getUserPrincipal
public Principal getUserPrincipal (String username)
Specified by: getUserPrincipal
in interface org.apache.jetspeed.security.spi.UserSecurityHandler
See Also: UserSecurityHandler.getUserPrincipal(java.lang.String)
getUserPrincipals
public List getUserPrincipals (String filter)
Specified by: getUserPrincipals
in interface org.apache.jetspeed.security.spi.UserSecurityHandler
See Also: UserSecurityHandler.getUserPrincipals(java.lang.String)
addUserPrincipal
public void addUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: addUserPrincipal
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: AuthenticationProviderProxy.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
addUserPrincipal
public void addUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
Specified by: addUserPrincipal
in interface org.apache.jetspeed.security.spi.UserSecurityHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: UserSecurityHandler.addUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
updateUserPrincipal
public void updateUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: updateUserPrincipal
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: AuthenticationProviderProxy.updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
updateUserPrincipal
public void updateUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
Specified by: updateUserPrincipal
in interface org.apache.jetspeed.security.spi.UserSecurityHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: UserSecurityHandler.updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
removeUserPrincipal
public void removeUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: removeUserPrincipal
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: AuthenticationProviderProxy.removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal,
java.lang.String)
removeUserPrincipal
public void removeUserPrincipal (org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
Specified by: removeUserPrincipal
in interface org.apache.jetspeed.security.spi.UserSecurityHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: UserSecurityHandler.removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal)
getPublicCredentials
public Set getPublicCredentials (String username)
Specified by: getPublicCredentials
in interface org.apache.jetspeed.security.spi.CredentialHandler
See Also: CredentialHandler.getPublicCredentials(java.lang.String)
setPassword
public void setPassword (String userName,
String oldPassword,
String newPassword,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: setPassword
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: AuthenticationProviderProxy.setPassword(String, String, String, String)
setPassword
public void setPassword (String userName,
String oldPassword,
String newPassword)
throws org.apache.jetspeed.security.SecurityException
Specified by: setPassword
in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: CredentialHandler.setPassword(java.lang.String,java.lang.String,java.lang.String)
importPassword
public void importPassword (String userName,
String newPassword,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: importPassword
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: org.apache.jetspeed.security.AuthenticationProviderProxy#importPassword(String, String, String, String)
importPassword
public void importPassword (String userName,
String newPassword)
throws org.apache.jetspeed.security.SecurityException
Specified by: importPassword
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Specified by: importPassword
in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: org.apache.jetspeed.security.spi.CredentialHandler#importPassword(java.lang.String,java.lang.String,java.lang.String)
getPrivateCredentials
public Set getPrivateCredentials (String username)
Specified by: getPrivateCredentials
in interface org.apache.jetspeed.security.spi.CredentialHandler
See Also: CredentialHandler.getPrivateCredentials(java.lang.String)
setPasswordEnabled
public void setPasswordEnabled (String userName,
boolean enabled,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: setPasswordEnabled
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: AuthenticationProviderProxy.setPasswordEnabled(java.lang.String, boolean, java.lang.String)
setPasswordEnabled
public void setPasswordEnabled (String userName,
boolean enabled)
throws org.apache.jetspeed.security.SecurityException
Specified by: setPasswordEnabled
in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: CredentialHandler.setPasswordEnabled(java.lang.String, boolean)
setPasswordUpdateRequired
public void setPasswordUpdateRequired (String userName,
boolean updateRequired,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: setPasswordUpdateRequired
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: AuthenticationProviderProxy.setPasswordUpdateRequired(java.lang.String, boolean, java.lang.String)
setPasswordUpdateRequired
public void setPasswordUpdateRequired (String userName,
boolean updateRequired)
throws org.apache.jetspeed.security.SecurityException
Specified by: setPasswordUpdateRequired
in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: CredentialHandler.setPasswordUpdateRequired(java.lang.String, boolean)
setPasswordExpiration
public void setPasswordExpiration (String userName,
Date expirationDate,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: setPasswordExpiration
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: AuthenticationProviderProxy.setPasswordExpiration(java.lang.String, java.sql.Date, java.lang.String)
setPasswordExpiration
public void setPasswordExpiration (String userName,
Date expirationDate)
throws org.apache.jetspeed.security.SecurityException
Specified by: setPasswordExpiration
in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: CredentialHandler.setPasswordExpiration(java.lang.String, java.sql.Date)
authenticate
public boolean authenticate (String userName,
String password,
String authenticationProvider)
throws org.apache.jetspeed.security.SecurityException
Specified by: authenticate
in interface org.apache.jetspeed.security.AuthenticationProviderProxy
Throws:
org.apache.jetspeed.security.SecurityException
See Also: AuthenticationProviderProxy.authenticate(String, String, String)
authenticate
public boolean authenticate (String userName,
String password)
throws org.apache.jetspeed.security.SecurityException
Specified by: authenticate
in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also: CredentialHandler.authenticate(java.lang.String, java.lang.String)
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.