org.jasig.cas.authentication.principal
Class SamlService

java.lang.Object
  extended by org.jasig.cas.authentication.principal.AbstractWebApplicationService
      extended by 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

Field Summary
 
Fields inherited from class org.jasig.cas.authentication.principal.AbstractWebApplicationService
LOG
 
Constructor Summary
protected SamlService(String id)
           
protected SamlService(String id, String originalUrl, String artifactId, HttpClient httpClient, String requestId)
           
 
Method Summary
static SamlService createServiceFrom(javax.servlet.http.HttpServletRequest request, HttpClient httpClient)
           
protected static String extractRequestId(String requestBody)
           
protected static String getRequestBody(javax.servlet.http.HttpServletRequest request)
           
 String getRequestID()
           
 Response getResponse(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, getHttpClient, getId, getOriginalUrl, getPrincipal, hashCode, logOutOfService, setPrincipal, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SamlService

protected SamlService(String id)

SamlService

protected SamlService(String id,
                      String originalUrl,
                      String artifactId,
                      HttpClient httpClient,
                      String requestId)
Method Detail

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.