Package io.strimzi.kafka.oauth.validator
Interface TokenValidator
- All Known Implementing Classes:
JWTSignatureValidator,OAuthIntrospectionValidator
public interface TokenValidator
An interface specifying a TokenValidator contract
-
Method Summary
-
Method Details
-
validate
Validate the passed access token return it wrapped in TokenInfo with- Parameters:
token- An access token to validate- Returns:
- TokenInfo wrapping a valid token
-
getValidatorId
String getValidatorId()Return the id of this validator- Returns:
- A validator id
-
close
void close()Close any allocated resources like background threads
-