org.jasig.portal.security.provider.cas
Class CasSecurityContextFactory

java.lang.Object
  extended by org.jasig.portal.security.provider.cas.CasSecurityContextFactory
All Implemented Interfaces:
ISecurityContextFactory

public final class CasSecurityContextFactory
extends java.lang.Object
implements ISecurityContextFactory

Factory for CasSecurityContext instances. This factory implementation reads configuration properties from security.properties once and stores those properties as static fields. As a consequence, this class is not usefully multiply instantiable -- you can multiply instantiate it, but all instances will behave the same. Also, this factory will not reflect changes to these properties in security.properties until the class is unloaded and reloaded -- typically only on portal JVM restart.


Constructor Summary
CasSecurityContextFactory()
           
 
Method Summary
 ISecurityContext getSecurityContext()
           
static void setCasProxyCallbackUrl(java.lang.String casProxyCallbackUrlArg)
          Static setter method for poor-man's dependency injection.
static void setCasValidateUrl(java.lang.String casValidateUrlArg)
          Static setter method for poor-man's dependency injection.
static void setPortalServiceUrl(java.lang.String portalServiceUrlArg)
          Static setter method for poor-man's dependency injection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CasSecurityContextFactory

public CasSecurityContextFactory()
Method Detail

getSecurityContext

public ISecurityContext getSecurityContext()
Specified by:
getSecurityContext in interface ISecurityContextFactory

setCasProxyCallbackUrl

public static void setCasProxyCallbackUrl(java.lang.String casProxyCallbackUrlArg)
Static setter method for poor-man's dependency injection. Calling this class's static setter methods is an alternative to using security.properties. You could call this from a context listener. You can safely just ignore this method.

Parameters:
casProxyCallbackUrlArg - - the https: URL to which you would like CAS deliver proxy granting tickets.

setPortalServiceUrl

public static void setPortalServiceUrl(java.lang.String portalServiceUrlArg)
Static setter method for poor-man's dependency injection. Calling this class's static setter methods is an alternative to using security.properties. You could call this from a context listener. You can safely just ignore this method.

Parameters:
portalServiceUrlArg - - the URL to which service tickets will authenticate portal users

setCasValidateUrl

public static void setCasValidateUrl(java.lang.String casValidateUrlArg)
Static setter method for poor-man's dependency injection. Calling this class's static setter methods is an alternative to using security.properties. You could call this from a context listener. You can safely just ignore this method.

Parameters:
casValidateUrlArg - - the https: URL at which CAS will validate the tickets


Copyright © 2005-2007 . All Rights Reserved.