Package org.molgenis.security.token
Class TokenAuthenticationProvider
- java.lang.Object
-
- org.molgenis.security.token.TokenAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class TokenAuthenticationProvider extends java.lang.Object implements org.springframework.security.authentication.AuthenticationProviderAuthenticationProvider that uses the TokenService and expects a RestAuthenticationToken
-
-
Constructor Summary
Constructors Constructor Description TokenAuthenticationProvider(org.molgenis.security.core.token.TokenService tokenService, org.springframework.security.core.userdetails.UserDetailsChecker userDetailsChecker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)booleansupports(java.lang.Class<?> authentication)
-
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider
-
supports
public boolean supports(java.lang.Class<?> authentication)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-