Class TokenAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationProvider

    public class TokenAuthenticationProvider
    extends java.lang.Object
    implements org.springframework.security.authentication.AuthenticationProvider
    AuthenticationProvider 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.Authentication authenticate​(org.springframework.security.core.Authentication authentication)  
      boolean supports​(java.lang.Class<?> authentication)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TokenAuthenticationProvider

        public TokenAuthenticationProvider​(org.molgenis.security.core.token.TokenService tokenService,
                                           org.springframework.security.core.userdetails.UserDetailsChecker userDetailsChecker)
    • Method Detail

      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      • supports

        public boolean supports​(java.lang.Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider