public class ServiceAuthenticationDetailsSource extends Object implements org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>, ApplicationContextAware
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()
Deprecated.
Use ServiceAuthenticationDetailsSource(ServiceProperties)
|
ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties)
Creates an implementation that uses the specified ServiceProperites and the default CAS artifactParameterName.
|
ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties,
String artifactParameterName)
Creates an implementation that uses the specified artifactParameterName
|
ServiceAuthenticationDetailsSource(String artifactParameterName)
Deprecated.
Use ServiceAuthenticationDetailsSource(ServiceProperties,String)
|
Modifier and Type | Method and Description |
---|---|
ServiceAuthenticationDetails |
buildDetails(javax.servlet.http.HttpServletRequest context) |
void |
setApplicationContext(ApplicationContext applicationContext) |
@Deprecated public ServiceAuthenticationDetailsSource()
public ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties)
serviceProperties
- The ServiceProperties to use to construct the serviceUrl.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 ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties, String artifactParameterName)
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.public ServiceAuthenticationDetails buildDetails(javax.servlet.http.HttpServletRequest context)
buildDetails
in interface org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,ServiceAuthenticationDetails>
context
- the HttpServletRequest
object.ServiceAuthenticationDetails
containing information about the current requestpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException