org.infoglue.cms.security
Class CASBasicAuthenticationModule

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

public class CASBasicAuthenticationModule
extends AuthenticationModule

Author:
Mattias Bogeblad This authentication module authenticates an user against CAS (edu.yale.its.tp.cas) which is a singe sign on service.

Constructor Summary
CASBasicAuthenticationModule()
           
 
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.
 boolean enforceJ2EEContainerPrincipal()
           
 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.lang.String getCurrentURL(javax.servlet.http.HttpServletRequest request)
           
 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 properties)
           
 void setInvalidLoginUrl(java.lang.String invalidLoginUrl)
           
 void setLoginUrl(java.lang.String loginUrl)
           
 void setLogoutUrl(java.lang.String logoutUrl)
           
 void setServerName(java.lang.String string)
           
 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

CASBasicAuthenticationModule

public CASBasicAuthenticationModule()
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 SystemException,
                                         java.lang.Exception
Specified by:
loginUser in class AuthenticationModule
Throws:
SystemException
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

getCurrentURL

public java.lang.String getCurrentURL(javax.servlet.http.HttpServletRequest request)

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

getServerName

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

setServerName

public void setServerName(java.lang.String string)
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 properties)
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

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

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

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

enforceJ2EEContainerPrincipal

public boolean enforceJ2EEContainerPrincipal()
Specified by:
enforceJ2EEContainerPrincipal in class AuthenticationModule


Copyright © 2005 InfoGlue.org All Rights Reserved.