public class ServiceAuthenticationDetailsSource extends Object implements AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>
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
.Constructor and Description |
---|
ServiceAuthenticationDetailsSource()
Creates an implementation that uses the default CAS artifactParameterName.
|
ServiceAuthenticationDetailsSource(String artifactParameterName)
Creates an implementation that uses the specified artifactParameterName
|
Modifier and Type | Method and Description |
---|---|
ServiceAuthenticationDetails |
buildDetails(javax.servlet.http.HttpServletRequest context)
Called by a class when it wishes a new authentication details instance to be created.
|
public ServiceAuthenticationDetailsSource()
public ServiceAuthenticationDetailsSource(String artifactParameterName)
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 ServiceAuthenticationDetails buildDetails(javax.servlet.http.HttpServletRequest context)
AuthenticationDetailsSource
buildDetails
in interface AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>
context
- the HttpServletRequest
object.ServiceAuthenticationDetails
containing information about the current request