spring-security-cas

org.springframework.security.cas.web.authentication
Class ServiceAuthenticationDetailsSource

java.lang.Object
  extended by org.springframework.security.cas.web.authentication.ServiceAuthenticationDetailsSource
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>

public class ServiceAuthenticationDetailsSource
extends Object
implements org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>

The AuthenticationDetailsSource that is set on the CasAuthenticationFilter should return a value that implements ServiceAuthenticationDetails if the application needs to authenticate dynamic service urls. The ServiceAuthenticationDetailsSource#buildDetails(HttpServletRequest) creates a default ServiceAuthenticationDetails.

Author:
Rob Winch

Constructor Summary
ServiceAuthenticationDetailsSource()
          Creates an implementation that uses the default CAS artifactParameterName.
ServiceAuthenticationDetailsSource(String artifactParameterName)
          Creates an implementation that uses the specified artifactParameterName
 
Method Summary
 ServiceAuthenticationDetails buildDetails(javax.servlet.http.HttpServletRequest context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceAuthenticationDetailsSource

public ServiceAuthenticationDetailsSource()
Creates an implementation that uses the default CAS artifactParameterName.


ServiceAuthenticationDetailsSource

public ServiceAuthenticationDetailsSource(String artifactParameterName)
Creates an implementation that uses the specified artifactParameterName

Parameters:
artifactParameterName - the artifactParameterName that is removed from the current URL. The result becomes the service url. Cannot be null and cannot be an empty String.
Method Detail

buildDetails

public ServiceAuthenticationDetails buildDetails(javax.servlet.http.HttpServletRequest context)
Specified by:
buildDetails in interface org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>
Parameters:
context - the HttpServletRequest object.
Returns:
the ServiceAuthenticationDetails containing information about the current request

spring-security-cas