org.apache.jetspeed.security.impl
Class AuthenticationProviderImpl

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

public class AuthenticationProviderImpl
extends Object
implements org.apache.jetspeed.security.AuthenticationProvider

Author:
David Le Strat
See Also:
AuthenticationProvider

Field Summary
private  org.apache.jetspeed.security.spi.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  org.apache.jetspeed.security.spi.UserSecurityHandler userSecurityHandler
          The UserSecurityHandler.
 
Constructor Summary
AuthenticationProviderImpl(String providerName, String providerDescription, org.apache.jetspeed.security.spi.CredentialHandler credHandler, org.apache.jetspeed.security.spi.UserSecurityHandler userSecurityHandler)
           Constructor to configure authenticatino user security and credential handlers.
AuthenticationProviderImpl(String providerName, String providerDescription, String loginConfig, org.apache.jetspeed.security.spi.CredentialHandler credHandler, org.apache.jetspeed.security.spi.UserSecurityHandler userSecurityHandler)
           Constructor configuring the security service with the correct java.security.auth.login.config.
 
Method Summary
 org.apache.jetspeed.security.spi.CredentialHandler getCredentialHandler()
           
 String getProviderDescription()
           
 String getProviderName()
           
 org.apache.jetspeed.security.spi.UserSecurityHandler getUserSecurityHandler()
           
 void setCredentialHandler(org.apache.jetspeed.security.spi.CredentialHandler credHandler)
           
 void setProviderDescription(String providerDescription)
           
 void setProviderName(String providerName)
           
 void setUserSecurityHandler(org.apache.jetspeed.security.spi.UserSecurityHandler 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 org.apache.jetspeed.security.spi.CredentialHandler credHandler
The CredentialHandler.


userSecurityHandler

private org.apache.jetspeed.security.spi.UserSecurityHandler userSecurityHandler
The UserSecurityHandler.

Constructor Detail

AuthenticationProviderImpl

public AuthenticationProviderImpl(String providerName,
                                  String providerDescription,
                                  org.apache.jetspeed.security.spi.CredentialHandler credHandler,
                                  org.apache.jetspeed.security.spi.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,
                                  org.apache.jetspeed.security.spi.CredentialHandler credHandler,
                                  org.apache.jetspeed.security.spi.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()
Specified by:
getProviderDescription in interface org.apache.jetspeed.security.AuthenticationProvider
Returns:
Returns the providerDescription.

setProviderDescription

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

getProviderName

public String getProviderName()
Specified by:
getProviderName in interface org.apache.jetspeed.security.AuthenticationProvider
Returns:
Returns the providerName.

setProviderName

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

getCredentialHandler

public org.apache.jetspeed.security.spi.CredentialHandler getCredentialHandler()
Specified by:
getCredentialHandler in interface org.apache.jetspeed.security.AuthenticationProvider
See Also:
AuthenticationProvider.getCredentialHandler()

getUserSecurityHandler

public org.apache.jetspeed.security.spi.UserSecurityHandler getUserSecurityHandler()
Specified by:
getUserSecurityHandler in interface org.apache.jetspeed.security.AuthenticationProvider
See Also:
AuthenticationProvider.getUserSecurityHandler()

setCredentialHandler

public void setCredentialHandler(org.apache.jetspeed.security.spi.CredentialHandler credHandler)
Specified by:
setCredentialHandler in interface org.apache.jetspeed.security.AuthenticationProvider
See Also:
AuthenticationProvider.setCredentialHandler(CredentialHandler)

setUserSecurityHandler

public void setUserSecurityHandler(org.apache.jetspeed.security.spi.UserSecurityHandler userSecurityHandler)
Specified by:
setUserSecurityHandler in interface org.apache.jetspeed.security.AuthenticationProvider
See Also:
AuthenticationProvider.setUserSecurityHandler(UserSecurityHandler)


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