Interface TokenService


  • public interface TokenService
    Store and remove molgenis security tokens
    • Method Detail

      • generateAndStoreToken

        String generateAndStoreToken​(String username,
                                     String description)
        Generates a token and associates it with a user. Token expires after 2 hours.
      • findUserByToken

        org.springframework.security.core.userdetails.UserDetails findUserByToken​(String token)
        Find a user by a security token
        Returns:
        the user or null if not found or token is expired
      • removeToken

        void removeToken​(String token)
        Remove a token from the store