Class AbstractCasAssertionUserDetailsService
java.lang.Object
org.springframework.security.cas.userdetails.AbstractCasAssertionUserDetailsService
- All Implemented Interfaces:
AuthenticationUserDetailsService<CasAssertionAuthenticationToken>
- Direct Known Subclasses:
GrantedAuthorityFromAssertionAttributesUserDetailsService
public abstract class AbstractCasAssertionUserDetailsService
extends Object
implements AuthenticationUserDetailsService<CasAssertionAuthenticationToken>
Abstract class for using the provided CAS assertion to construct a new User object.
This generally is most useful when combined with a SAML-based response from the CAS
Server/client.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract UserDetails
loadUserDetails
(org.apereo.cas.client.validation.Assertion assertion) Protected template method for construct aUserDetails
via the supplied CAS assertion.final UserDetails
-
Constructor Details
-
AbstractCasAssertionUserDetailsService
public AbstractCasAssertionUserDetailsService()
-
-
Method Details
-
loadUserDetails
- Specified by:
loadUserDetails
in interfaceAuthenticationUserDetailsService<CasAssertionAuthenticationToken>
- Parameters:
token
- The pre-authenticated authentication token- Returns:
- UserDetails for the given authentication token, never null.
-
loadUserDetails
protected abstract UserDetails loadUserDetails(org.apereo.cas.client.validation.Assertion assertion) Protected template method for construct aUserDetails
via the supplied CAS assertion.- Parameters:
assertion
- the assertion to use to construct the new UserDetails. CANNOT be NULL.- Returns:
- the newly constructed UserDetails.
-