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:
- 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
| Methods inherited from class org.jasig.cas.authentication.principal.AbstractWebApplicationService |
cleanupUrl, equals, getArtifactId, getAttributes, getHttpClient, getId, getOriginalUrl, getPrincipal, hashCode, logOutOfService, setPrincipal, toString |
SamlService
protected SamlService(String id)
SamlService
protected SamlService(String id,
String originalUrl,
String artifactId,
HttpClient httpClient,
String requestId)
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
getRequestID
public String getRequestID()
createServiceFrom
public static SamlService createServiceFrom(javax.servlet.http.HttpServletRequest request,
HttpClient httpClient)
getResponse
public Response getResponse(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.
extractRequestId
protected static String extractRequestId(String requestBody)
getRequestBody
protected static String getRequestBody(javax.servlet.http.HttpServletRequest request)
Copyright © 2004-2013 Jasig. All Rights Reserved.