Interface ApiTokenDetailsService
- All Superinterfaces:
org.springframework.security.core.userdetails.AuthenticationUserDetailsService<ApiTokenAuthenticationToken>
public interface ApiTokenDetailsService
extends org.springframework.security.core.userdetails.AuthenticationUserDetailsService<ApiTokenAuthenticationToken>
Load details based on token.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classApiTokenDetails for an OAuth client.static classAclSid details for API Token authenticaton.static final classApiTokenDetails implementation for a user account. -
Method Summary
-
Method Details
-
loadUserDetails
ApiTokenDetailsService.ApiTokenDetails<? extends AclSid> loadUserDetails(ApiTokenAuthenticationToken token) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Specified by:
loadUserDetailsin interfaceorg.springframework.security.core.userdetails.AuthenticationUserDetailsService<ApiTokenAuthenticationToken>- Parameters:
token- The pre-authenticated authentication token- Returns:
- UserDetails for the given authentication token, never null.
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException- if no user details can be found for the given authentication token
-