|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.security.provider.cas.CasSecurityContextFactory
public final class CasSecurityContextFactory
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.
Field Summary | |
---|---|
private static java.lang.String |
casProxyCallbackUrl
The https: URL to which CAS is to deliver proxy granting tickets. |
private static java.lang.String |
casValidateUrl
The URL at which these service tickets can be validated. |
private org.apache.commons.logging.Log |
log
|
private static java.lang.String |
portalServiceUrl
The URL to which service tickets will authenticate users. |
Constructor Summary | |
---|---|
CasSecurityContextFactory()
|
Method Summary | |
---|---|
ISecurityContext |
getSecurityContext()
|
private void |
initializeFromSecurityProperties()
Retrieve my properties from security.properties |
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 |
Field Detail |
---|
private final org.apache.commons.logging.Log log
private static java.lang.String casProxyCallbackUrl
private static java.lang.String portalServiceUrl
private static java.lang.String casValidateUrl
Constructor Detail |
---|
public CasSecurityContextFactory()
Method Detail |
---|
private void initializeFromSecurityProperties() throws ResourceMissingException, java.io.IOException
java.io.IOException
ResourceMissingException
public ISecurityContext getSecurityContext()
getSecurityContext
in interface ISecurityContextFactory
public static void setCasProxyCallbackUrl(java.lang.String casProxyCallbackUrlArg)
casProxyCallbackUrlArg
- -
the https: URL to which you would like CAS deliver proxy
granting tickets.public static void setPortalServiceUrl(java.lang.String portalServiceUrlArg)
portalServiceUrlArg
- -
the URL to which service tickets will authenticate portal
userspublic static void setCasValidateUrl(java.lang.String casValidateUrlArg)
casValidateUrlArg
- -
the https: URL at which CAS will validate the tickets
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |