Package com.wavefront.agent.auth
Interface TokenAuthenticator
-
public interface TokenAuthenticator
Token validator for processing incoming requests.- Author:
- [email protected]
-
-
Field Summary
Fields Modifier and Type Field Description static TokenAuthenticator
DUMMY_AUTHENTICATOR
Shared dummy authenticator.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
authorize(String token)
Validate a token.boolean
authRequired()
Check whether authentication is required (i.e.
-
-
-
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.
-
-