Package com.wavefront.agent.auth
Interface TokenAuthenticator
-
public interface TokenAuthenticatorToken validator for processing incoming requests.- Author:
- [email protected]
-
-
Field Summary
Fields Modifier and Type Field Description static TokenAuthenticatorDUMMY_AUTHENTICATORShared dummy authenticator.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthorize(String token)Validate a token.booleanauthRequired()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.
-
-