org.infoglue.cms.security
Class JNDIBasicAuthenticationModule

java.lang.Object
  extended by org.infoglue.cms.security.AuthenticationModule
      extended by org.infoglue.cms.security.JNDIBasicAuthenticationModule

public class JNDIBasicAuthenticationModule
extends AuthenticationModule

Author:
Mattias Bogeblad This authentication module authenticates an user against the ordinary infoglue database.

Constructor Summary
JNDIBasicAuthenticationModule()
           
 
Method Summary
 java.lang.String authenticateUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain fc)
          This method handles all of the logic for checking how to handle a login.
 java.lang.String authenticateUser(java.util.Map request)
          This method handles all of the logic for checking how to handle a login.
 java.lang.String getAuthenticatorClass()
           
 java.lang.String getAuthorizerClass()
           
 java.lang.String getCasAuthorizedProxy()
           
 java.lang.String getCasLogoutUrl()
           
 java.lang.String getCasRenew()
           
 java.lang.String getCasServiceUrl()
           
 java.lang.String getCasValidateUrl()
           
 java.util.Properties getExtraProperties()
           
 java.lang.String getInvalidLoginUrl()
           
 java.lang.String getLoginDialogUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method handles all of the logic for checking how to handle a login.
 java.lang.String getLoginUrl()
           
 java.lang.String getLogoutUrl()
           
 java.lang.String getServerName()
           
 java.lang.String getSuccessLoginUrl()
           
 java.lang.Object getTransactionObject()
           
 java.security.Principal loginUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map status)
           
 boolean logoutUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void setAuthenticatorClass(java.lang.String authenticatorClass)
           
 void setAuthorizerClass(java.lang.String authorizerClass)
           
 void setCasAuthorizedProxy(java.lang.String casAuthorizedProxy)
           
 void setCasLogoutUrl(java.lang.String casLogoutUrl)
           
 void setCasRenew(java.lang.String casRenew)
           
 void setCasServiceUrl(java.lang.String casServiceUrl)
           
 void setCasValidateUrl(java.lang.String casValidateUrl)
           
 void setExtraProperties(java.util.Properties extraProperties)
           
 void setInvalidLoginUrl(java.lang.String invalidLoginUrl)
           
 void setLoginUrl(java.lang.String loginUrl)
           
 void setLogoutUrl(java.lang.String logoutUrl)
           
 void setServerName(java.lang.String serverName)
           
 void setSuccessLoginUrl(java.lang.String successLoginUrl)
           
 void setTransactionObject(java.lang.Object transactionObject)
           
 
Methods inherited from class org.infoglue.cms.security.AuthenticationModule
getAuthenticationModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIBasicAuthenticationModule

public JNDIBasicAuthenticationModule()
Method Detail

authenticateUser

public java.lang.String authenticateUser(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         javax.servlet.FilterChain fc)
                                  throws java.lang.Exception
This method handles all of the logic for checking how to handle a login.

Specified by:
authenticateUser in class AuthenticationModule
Throws:
java.lang.Exception

authenticateUser

public java.lang.String authenticateUser(java.util.Map request)
                                  throws java.lang.Exception
This method handles all of the logic for checking how to handle a login.

Specified by:
authenticateUser in class AuthenticationModule
Throws:
java.lang.Exception

getLoginDialogUrl

public java.lang.String getLoginDialogUrl(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws java.lang.Exception
This method handles all of the logic for checking how to handle a login.

Specified by:
getLoginDialogUrl in class AuthenticationModule
Throws:
java.lang.Exception

loginUser

public java.security.Principal loginUser(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response,
                                         java.util.Map status)
                                  throws java.lang.Exception
Specified by:
loginUser in class AuthenticationModule
Throws:
java.lang.Exception

logoutUser

public boolean logoutUser(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws java.lang.Exception
Specified by:
logoutUser in class AuthenticationModule
Throws:
java.lang.Exception

getAuthenticatorClass

public java.lang.String getAuthenticatorClass()
Specified by:
getAuthenticatorClass in class AuthenticationModule

setAuthenticatorClass

public void setAuthenticatorClass(java.lang.String authenticatorClass)
Specified by:
setAuthenticatorClass in class AuthenticationModule

getAuthorizerClass

public java.lang.String getAuthorizerClass()
Specified by:
getAuthorizerClass in class AuthenticationModule

setAuthorizerClass

public void setAuthorizerClass(java.lang.String authorizerClass)
Specified by:
setAuthorizerClass in class AuthenticationModule

getInvalidLoginUrl

public java.lang.String getInvalidLoginUrl()
Specified by:
getInvalidLoginUrl in class AuthenticationModule

setInvalidLoginUrl

public void setInvalidLoginUrl(java.lang.String invalidLoginUrl)
Specified by:
setInvalidLoginUrl in class AuthenticationModule

getLoginUrl

public java.lang.String getLoginUrl()
Specified by:
getLoginUrl in class AuthenticationModule

setLoginUrl

public void setLoginUrl(java.lang.String loginUrl)
Specified by:
setLoginUrl in class AuthenticationModule

getLogoutUrl

public java.lang.String getLogoutUrl()
Specified by:
getLogoutUrl in class AuthenticationModule

setLogoutUrl

public void setLogoutUrl(java.lang.String logoutUrl)
Specified by:
setLogoutUrl in class AuthenticationModule

getSuccessLoginUrl

public java.lang.String getSuccessLoginUrl()
Specified by:
getSuccessLoginUrl in class AuthenticationModule

setSuccessLoginUrl

public void setSuccessLoginUrl(java.lang.String successLoginUrl)
Specified by:
setSuccessLoginUrl in class AuthenticationModule

getServerName

public java.lang.String getServerName()
Specified by:
getServerName in class AuthenticationModule

setServerName

public void setServerName(java.lang.String serverName)
Specified by:
setServerName in class AuthenticationModule

getExtraProperties

public java.util.Properties getExtraProperties()
Specified by:
getExtraProperties in class AuthenticationModule

setExtraProperties

public void setExtraProperties(java.util.Properties extraProperties)
Specified by:
setExtraProperties in class AuthenticationModule

getCasRenew

public java.lang.String getCasRenew()
Specified by:
getCasRenew in class AuthenticationModule

setCasRenew

public void setCasRenew(java.lang.String casRenew)
Specified by:
setCasRenew in class AuthenticationModule

getCasServiceUrl

public java.lang.String getCasServiceUrl()
Specified by:
getCasServiceUrl in class AuthenticationModule

setCasServiceUrl

public void setCasServiceUrl(java.lang.String casServiceUrl)
Specified by:
setCasServiceUrl in class AuthenticationModule

getCasValidateUrl

public java.lang.String getCasValidateUrl()
Specified by:
getCasValidateUrl in class AuthenticationModule

setCasValidateUrl

public void setCasValidateUrl(java.lang.String casValidateUrl)
Specified by:
setCasValidateUrl in class AuthenticationModule

getCasAuthorizedProxy

public java.lang.String getCasAuthorizedProxy()
Specified by:
getCasAuthorizedProxy in class AuthenticationModule

setCasAuthorizedProxy

public void setCasAuthorizedProxy(java.lang.String casAuthorizedProxy)
Specified by:
setCasAuthorizedProxy in class AuthenticationModule

getTransactionObject

public java.lang.Object getTransactionObject()
Specified by:
getTransactionObject in class AuthenticationModule

setTransactionObject

public void setTransactionObject(java.lang.Object transactionObject)
Specified by:
setTransactionObject in class AuthenticationModule

getCasLogoutUrl

public java.lang.String getCasLogoutUrl()
Specified by:
getCasLogoutUrl in class AuthenticationModule

setCasLogoutUrl

public void setCasLogoutUrl(java.lang.String casLogoutUrl)
Specified by:
setCasLogoutUrl in class AuthenticationModule


Copyright © 2005 InfoGlue.org All Rights Reserved.