Package com.adobe.granite.auth.oauth
Interface TokenValidator
-
@ConsumerType public interface TokenValidator
An interface to validate the access token. Implementers of this interface should use this to validate the access token.- Since:
- 3.7
- See Also:
AccessTokenProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALIDATOR_TYPE_PROPERTY
Specifies the property name of this validator type
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isValid(String accessToken)
Validates the access token
-
-
-
Field Detail
-
VALIDATOR_TYPE_PROPERTY
static final String VALIDATOR_TYPE_PROPERTY
Specifies the property name of this validator type- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
boolean isValid(String accessToken)
Validates the access token- Parameters:
accessToken
-- Returns:
true
if the token is valid elsefalse
-
-