org.jasig.cas.authentication.principal
Class SamlService
java.lang.Object
org.jasig.cas.authentication.principal.AbstractWebApplicationService
org.jasig.cas.authentication.principal.SamlService
- All Implemented Interfaces:
- java.io.Serializable, Principal, Service, WebApplicationService
public final class SamlService
- extends AbstractWebApplicationService
Class to represent that this service wants to use SAML. We use this in
combination with the CentralAuthenticationServiceImpl to choose the right
UniqueTicketIdGenerator.
- Since:
- 3.1
- Version:
- $Revision: 1.6 $ $Date: 2007/02/27 19:31:58 $
- Author:
- Scott Battaglia
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
SamlService(java.lang.String id)
|
protected |
SamlService(java.lang.String id,
java.lang.String originalUrl,
java.lang.String artifactId,
HttpClient httpClient)
|
|
Method Summary |
static SamlService |
createServiceFrom(javax.servlet.http.HttpServletRequest request,
HttpClient httpClient)
|
protected static java.lang.String |
getRequestBody(javax.servlet.http.HttpServletRequest request)
|
Response |
getResponse(java.lang.String ticketId)
Constructs the url to redirect the service back to. |
boolean |
matches(Service service)
This always returns true because a SAML Service does not receive the TARGET value on validation. |
| Methods inherited from class org.jasig.cas.authentication.principal.AbstractWebApplicationService |
cleanupUrl, equals, getArtifactId, getAttributes, getId, getOriginalUrl, getPrincipal, hashCode, logOutOfService, setPrincipal, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SamlService
protected SamlService(java.lang.String id)
SamlService
protected SamlService(java.lang.String id,
java.lang.String originalUrl,
java.lang.String artifactId,
HttpClient httpClient)
matches
public boolean matches(Service service)
- This always returns true because a SAML Service does not receive the TARGET value on validation.
- Specified by:
matches in interface Service- Overrides:
matches in class AbstractWebApplicationService
createServiceFrom
public static SamlService createServiceFrom(javax.servlet.http.HttpServletRequest request,
HttpClient httpClient)
getResponse
public Response getResponse(java.lang.String ticketId)
- Description copied from interface:
WebApplicationService
- Constructs the url to redirect the service back to.
- Parameters:
ticketId - the service ticket to provide to the service.
- Returns:
- the redirect url.
getRequestBody
protected static java.lang.String getRequestBody(javax.servlet.http.HttpServletRequest request)
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.