public class

ServiceAuthenticationDetailsSource

extends Object
implements AuthenticationDetailsSource<C, T>
java.lang.Object
   ↳ org.springframework.security.cas.web.authentication.ServiceAuthenticationDetailsSource

Class Overview

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.

Summary

Public Constructors
ServiceAuthenticationDetailsSource()
Creates an implementation that uses the default CAS artifactParameterName.
ServiceAuthenticationDetailsSource(String artifactParameterName)
Creates an implementation that uses the specified artifactParameterName
Public Methods
ServiceAuthenticationDetails buildDetails(HttpServletRequest context)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.authentication.AuthenticationDetailsSource

Public Constructors

public ServiceAuthenticationDetailsSource ()

Creates an implementation that uses the default CAS artifactParameterName.

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.

Public Methods

public ServiceAuthenticationDetails buildDetails (HttpServletRequest context)

Parameters
context the HttpServletRequest object.
Returns
  • the ServiceAuthenticationDetails containing information about the current request