Package io.strimzi.kafka.oauth.services
Class Validators
java.lang.Object
io.strimzi.kafka.oauth.services.Validators
A singleton holding the configured token validators
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(ConfigurationKey key, Supplier<TokenValidator> factory) Get aTokenValidatorfor the givenConfigurationKey.
-
Constructor Details
-
Validators
public Validators()
-
-
Method Details
-
get
Get aTokenValidatorfor the givenConfigurationKey. If one has not been register yet, use the passedfactoryto create and register one.- Parameters:
key- A key representing a TokenValidator configured with particular configuration optionsfactory- A TokenValidator supplier- Returns:
- An existing or new token validator
-