Interface TokenAuthenticator


  • public interface TokenAuthenticator
    Token validator for processing incoming requests.
    Author:
    [email protected]
    • Field Detail

      • DUMMY_AUTHENTICATOR

        static final TokenAuthenticator DUMMY_AUTHENTICATOR
        Shared dummy authenticator.
    • Method Detail

      • authorize

        boolean authorize​(@Nullable
                          String token)
        Validate a token.
        Parameters:
        token - token to validate.
        Returns:
        true if the token is considered valid.
      • authRequired

        boolean authRequired()
        Check whether authentication is required (i.e. "true" authenticator)
        Returns:
        true if authentication is required.