|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.security.provider.ChainingSecurityContext
org.jasig.portal.security.provider.cas.CasSecurityContext
public class CasSecurityContext
A SecurityContext using the Central Authentication Service.
An ICasSecurityContext implementation in keeping with the traditional approach of performing actual authentication inside this security context. This security context is suitable for cases where your login URL (the "portalServiceUrl") is a constant. This class is based on edu.yale.its.tp.portal.security.YaleCasContext as distributed in the Yale uPortal CAS security provider version 3.0.0.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
---|
ChainingSecurityContext.ChainingAdditionalDescriptor, ChainingSecurityContext.ChainingOpaqueCredentials, ChainingSecurityContext.ChainingPrincipal |
Field Summary | |
---|---|
private java.lang.String |
casProxyCallbackUrl
The https: URL at which CAS is to call back the uPortal with Proxy Granting Tickets. |
private java.lang.String |
casValidateUrl
The https: URL at which CAS offers its ticket validation service. |
private java.lang.String |
pgtIou
The pgtIou which keys to the Proxy Granting Ticket associated with this authenticated security context, if any. |
private java.lang.String |
portalServiceUrl
The URL of the uPortal Login servlet to which service tickets will authenticate users. |
private static long |
serialVersionUID
|
Fields inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
---|
isauth, log, myAdditionalDescriptor, myOpaqueCredentials, myOrder, myPrincipal, mySubContexts, stopWhenAuthenticated |
Fields inherited from interface org.jasig.portal.security.provider.cas.ICasSecurityContext |
---|
CAS_AUTHTYPE |
Constructor Summary | |
---|---|
CasSecurityContext(java.lang.String portalServiceUrl,
java.lang.String casValidateUrl)
Instantiate a YaleCasContext given a constant URL to which CAS service tickets will authenticate users, a URL at which to validate those tickets. |
|
CasSecurityContext(java.lang.String portalServiceUrl,
java.lang.String casValidateUrl,
java.lang.String casProxyCallbackUrl)
Instantiate a YaleCasContext given a constant URL to which CAS service tickets will authenticate users, a URL at which to validate those tickets, and a callback URL at which to ask CAS to deliver Proxy Granting Tickets. |
Method Summary | |
---|---|
void |
authenticate()
We walk the chain of subcontext assigning principals and opaquecredentials from the parent. |
int |
getAuthType()
Returns the canonical authentication type for this flavor of authentication. |
java.lang.String |
getCasServiceToken(java.lang.String target)
Get a proxy ticket for a given target. |
java.lang.String |
toString()
|
Methods inherited from class org.jasig.portal.security.provider.ChainingSecurityContext |
---|
addSubContext, doesSubContextExist, getAdditionalDescriptor, getOpaqueCredentials, getOpaqueCredentialsInstance, getPrincipal, getPrincipalInstance, getSubContext, getSubContextNames, getSubContexts, isAuthenticated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final java.lang.String portalServiceUrl
private final java.lang.String casValidateUrl
private final java.lang.String casProxyCallbackUrl
private java.lang.String pgtIou
Constructor Detail |
---|
public CasSecurityContext(java.lang.String portalServiceUrl, java.lang.String casValidateUrl, java.lang.String casProxyCallbackUrl)
portalServiceUrl
- -
the constant URL to which service tickets authenticate userscasValidateUrl
- -
the https: URL at which CAS offers its ticket validation
servicecasProxyCallbackUrl
- -
the https: URL to which CAS should send proxy granting
tickets.public CasSecurityContext(java.lang.String portalServiceUrl, java.lang.String casValidateUrl)
portalServiceUrl
- -
the constant URL to which service tickets authenticate userscasValidateUrl
- -
the https: URL at which CAS offers its ticket validation
serviceMethod Detail |
---|
public int getAuthType()
ISecurityContext
getAuthType
in interface ISecurityContext
public void authenticate() throws PortalSecurityException
ChainingSecurityContext
authenticate
in interface ISecurityContext
authenticate
in class ChainingSecurityContext
PortalSecurityException
ISecurityContext.getPrincipalInstance()
,
ISecurityContext.getOpaqueCredentialsInstance()
public java.lang.String getCasServiceToken(java.lang.String target) throws CasProxyTicketAcquisitionException
ICasSecurityContext
getCasServiceToken
in interface ICasSecurityContext
target
- - URL for which a proxy ticket is desired.
CasProxyTicketAcquisitionException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |