Interface TokenAuthenticator

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TokenAuthenticator
    A TokenAuthenticator is responsible for creating a SecurityContext given a token header value.
    • Method Detail

      • authenticate

        javax.ws.rs.core.SecurityContext authenticate​(String token)
        Creates a SecurityContext for the given token value.
        Parameters:
        token - the token value
        Returns:
        the security context