public class Validators
extends java.lang.Object
| Constructor and Description |
|---|
Validators() |
| Modifier and Type | Method and Description |
|---|---|
TokenValidator |
get(ConfigurationKey key,
java.util.function.Supplier<TokenValidator> factory)
Get a
TokenValidator for the given ConfigurationKey. |
public TokenValidator get(ConfigurationKey key, java.util.function.Supplier<TokenValidator> factory)
TokenValidator for the given ConfigurationKey. If one has not been register yet,
use the passed factory to create and register one.key - A key representing a TokenValidator configured with particular configuration optionsfactory - A TokenValidator supplierCopyright © 2023. All rights reserved.