Class ServiceAuthenticationDetailsSource
- java.lang.Object
-
- org.springframework.security.cas.web.authentication.ServiceAuthenticationDetailsSource
-
- All Implemented Interfaces:
AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>
public class ServiceAuthenticationDetailsSource extends java.lang.Object implements AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>
TheAuthenticationDetailsSource
that is set on theCasAuthenticationFilter
should return a value that implementsServiceAuthenticationDetails
if the application needs to authenticate dynamic service urls. TheServiceAuthenticationDetailsSource#buildDetails(HttpServletRequest)
creates a defaultServiceAuthenticationDetails
.
-
-
Constructor Summary
Constructors Constructor Description ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties)
Creates an implementation that uses the specified ServiceProperties and the default CAS artifactParameterName.ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties, java.lang.String artifactParameterName)
Creates an implementation that uses the specified artifactParameterName
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAuthenticationDetails
buildDetails(javax.servlet.http.HttpServletRequest context)
Called by a class when it wishes a new authentication details instance to be created.
-
-
-
Constructor Detail
-
ServiceAuthenticationDetailsSource
public ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties)
Creates an implementation that uses the specified ServiceProperties and the default CAS artifactParameterName.- Parameters:
serviceProperties
- The ServiceProperties to use to construct the serviceUrl.
-
ServiceAuthenticationDetailsSource
public ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties, java.lang.String artifactParameterName)
Creates an implementation that uses the specified artifactParameterName- Parameters:
serviceProperties
- The ServiceProperties to use to construct the serviceUrl.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)
Description copied from interface:AuthenticationDetailsSource
Called by a class when it wishes a new authentication details instance to be created.- Specified by:
buildDetails
in interfaceAuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>
- Parameters:
context
- theHttpServletRequest
object.- Returns:
- the
ServiceAuthenticationDetails
containing information about the current request
-
-