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 Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.SecurityContext
    Creates a SecurityContext for the given token value.
  • Method Details

    • authenticate

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