class OAuthBearerExtensionsValidatorCallback implements Callback {

    public void valid(String extensionName) {
        if (!inputExtensions.map().containsKey(extensionName))
            throw new IllegalArgumentException(String.format("Extension %s was not found in the original extensions", extensionName));
        validatedExtensions.put(extensionName, inputExtensions.map().get(extensionName));
    }

    public  OAuthBearerExtensionsValidatorCallback(OAuthBearerToken token, SaslExtensions extensions);

}