org.apache.jetspeed.security.impl
Class AuthenticationProviderImpl

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

public class AuthenticationProviderImpl
extends java.lang.Object
implements AuthenticationProvider

Author:
David Le Strat
See Also:
AuthenticationProvider

Constructor Summary
AuthenticationProviderImpl(java.lang.String providerName, java.lang.String providerDescription, CredentialHandler credHandler, UserSecurityHandler userSecurityHandler)
           Constructor to configure authenticatino user security and credential handlers.
AuthenticationProviderImpl(java.lang.String providerName, java.lang.String providerDescription, java.lang.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.
 java.lang.String getProviderDescription()
           Gets the authentication provider description.
 java.lang.String getProviderName()
           Gets the authentication provider name.
 UserSecurityHandler getUserSecurityHandler()
           Gets the UserSecurityHandler.
 void setCredentialHandler(CredentialHandler credHandler)
           Sets the CredentialHandler.
 void setProviderDescription(java.lang.String providerDescription)
           
 void setProviderName(java.lang.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
 

Constructor Detail

AuthenticationProviderImpl

public AuthenticationProviderImpl(java.lang.String providerName,
                                  java.lang.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(java.lang.String providerName,
                                  java.lang.String providerDescription,
                                  java.lang.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 java.lang.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(java.lang.String providerDescription)
Parameters:
providerDescription - The providerDescription to set.

getProviderName

public java.lang.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(java.lang.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-2010 Apache Software Foundation. All Rights Reserved.