org.apache.jetspeed.security.impl
Class AuthenticationProviderImpl

java.lang.Object
  extended byorg.apache.jetspeed.security.impl.AuthenticationProviderImpl
All Implemented Interfaces:
AuthenticationProvider

public class AuthenticationProviderImpl
extends Object
implements AuthenticationProvider

Author:
David Le Strat
See Also:
AuthenticationProvider

Field Summary
private  CredentialHandler credHandler
          The CredentialHandler.
private static org.apache.commons.logging.Log log
          The logger.
private  String providerDescription
          The provider description.
private  String providerName
          The provider name.
private  UserSecurityHandler userSecurityHandler
          The UserSecurityHandler.
 
Constructor Summary
AuthenticationProviderImpl(String providerName, String providerDescription, CredentialHandler credHandler, UserSecurityHandler userSecurityHandler)
           Constructor to configure authenticatino user security and credential handlers.
AuthenticationProviderImpl(String providerName, String providerDescription, String loginConfig, CredentialHandler credHandler, UserSecurityHandler userSecurityHandler)
           Constructor configuring the security service with the correct java.security.auth.login.config.
 
Method Summary
 CredentialHandler getCredentialHandler()
           Gets the CredentialHandler.
 String getProviderDescription()
           Gets the authentication provider description.
 String getProviderName()
           Gets the authentication provider name.
 UserSecurityHandler getUserSecurityHandler()
           Gets the UserSecurityHandler.
 void setCredentialHandler(CredentialHandler credHandler)
           Sets the CredentialHandler.
 void setProviderDescription(String providerDescription)
           
 void setProviderName(String providerName)
           
 void setUserSecurityHandler(UserSecurityHandler userSecurityHandler)
           Sets the UserSecurityHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The logger.


providerName

private String providerName
The provider name.


providerDescription

private String providerDescription
The provider description.


credHandler

private CredentialHandler credHandler
The CredentialHandler.


userSecurityHandler

private UserSecurityHandler userSecurityHandler
The UserSecurityHandler.

Constructor Detail

AuthenticationProviderImpl

public AuthenticationProviderImpl(String providerName,
                                  String providerDescription,
                                  CredentialHandler credHandler,
                                  UserSecurityHandler userSecurityHandler)

Constructor to configure authenticatino user security and credential handlers.

Parameters:
providerName - The provider name.
providerDescription - The provider description.
credHandler - The credential handler.
userSecurityHandler - The user security handler.

AuthenticationProviderImpl

public AuthenticationProviderImpl(String providerName,
                                  String providerDescription,
                                  String loginConfig,
                                  CredentialHandler credHandler,
                                  UserSecurityHandler userSecurityHandler)

Constructor configuring the security service with the correct java.security.auth.login.config.

Parameters:
providerName - The provider name.
providerDescription - The provider description.
loginConfig - The login module config.
credHandler - The credential handler.
userSecurityHandler - The user security handler.
Method Detail

getProviderDescription

public String getProviderDescription()
Description copied from interface: AuthenticationProvider

Gets the authentication provider description.

Specified by:
getProviderDescription in interface AuthenticationProvider
Returns:
Returns the providerDescription.

setProviderDescription

public void setProviderDescription(String providerDescription)
Parameters:
providerDescription - The providerDescription to set.

getProviderName

public String getProviderName()
Description copied from interface: AuthenticationProvider

Gets the authentication provider name.

Specified by:
getProviderName in interface AuthenticationProvider
Returns:
Returns the providerName.

setProviderName

public void setProviderName(String providerName)
Parameters:
providerName - The providerName to set.

getCredentialHandler

public CredentialHandler getCredentialHandler()
Description copied from interface: AuthenticationProvider

Gets the CredentialHandler.

Specified by:
getCredentialHandler in interface AuthenticationProvider
Returns:
The CredentialHandler.
See Also:
AuthenticationProvider.getCredentialHandler()

getUserSecurityHandler

public UserSecurityHandler getUserSecurityHandler()
Description copied from interface: AuthenticationProvider

Gets the UserSecurityHandler.

Specified by:
getUserSecurityHandler in interface AuthenticationProvider
Returns:
The UserSecurityHandler.
See Also:
AuthenticationProvider.getUserSecurityHandler()

setCredentialHandler

public void setCredentialHandler(CredentialHandler credHandler)
Description copied from interface: AuthenticationProvider

Sets the CredentialHandler.

Specified by:
setCredentialHandler in interface AuthenticationProvider
Parameters:
credHandler - The CredentialHandler.
See Also:
AuthenticationProvider.setCredentialHandler(CredentialHandler)

setUserSecurityHandler

public void setUserSecurityHandler(UserSecurityHandler userSecurityHandler)
Description copied from interface: AuthenticationProvider

Sets the UserSecurityHandler.

Specified by:
setUserSecurityHandler in interface AuthenticationProvider
Parameters:
userSecurityHandler - The UserSecurityHandler.
See Also:
AuthenticationProvider.setUserSecurityHandler(UserSecurityHandler)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.