Class ServiceAuthenticationDetailsSource
java.lang.Object
org.springframework.security.cas.web.authentication.ServiceAuthenticationDetailsSource
- All Implemented Interfaces:
- AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,- ServiceAuthenticationDetails> 
public class ServiceAuthenticationDetailsSource
extends Object
implements AuthenticationDetailsSource<jakarta.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.- 
Constructor SummaryConstructorsConstructorDescriptionServiceAuthenticationDetailsSource(ServiceProperties serviceProperties) Creates an implementation that uses the specified ServiceProperties and the default CAS artifactParameterName.ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties, String artifactParameterName) Creates an implementation that uses the specified artifactParameterName
- 
Method SummaryModifier and TypeMethodDescriptionbuildDetails(jakarta.servlet.http.HttpServletRequest context) Called by a class when it wishes a new authentication details instance to be created.
- 
Constructor Details- 
ServiceAuthenticationDetailsSourceCreates an implementation that uses the specified ServiceProperties and the default CAS artifactParameterName.- Parameters:
- serviceProperties- The ServiceProperties to use to construct the serviceUrl.
 
- 
ServiceAuthenticationDetailsSourcepublic ServiceAuthenticationDetailsSource(ServiceProperties serviceProperties, 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 Details- 
buildDetailsDescription copied from interface:AuthenticationDetailsSourceCalled by a class when it wishes a new authentication details instance to be created.- Specified by:
- buildDetailsin interface- AuthenticationDetailsSource<jakarta.servlet.http.HttpServletRequest,- ServiceAuthenticationDetails> 
- Parameters:
- context- the- HttpServletRequestobject.
- Returns:
- the ServiceAuthenticationDetailscontaining information about the current request
 
 
-