Interface AuthSchemeValidator
Validates an authentication scheme after passing a predicate check.
-
Method Summary
Modifier and TypeMethodDescriptionvalidateScheme
(Map<Identifier, Literal> authScheme, FromSourceLocation sourceLocation, BiFunction<FromSourceLocation, String, ValidationEvent> emitter) Validates that the providedauthScheme
matches required modeling behavior, emitting events for any failures.
-
Method Details
-
validateScheme
List<ValidationEvent> validateScheme(Map<Identifier, Literal> authScheme, FromSourceLocation sourceLocation, BiFunction<FromSourceLocation, String, ValidationEvent> emitter) Validates that the providedauthScheme
matches required modeling behavior, emitting events for any failures.- Parameters:
authScheme
- an authorization scheme parameter set.sourceLocation
- the location of the authorization scheme to generate events from.emitter
- a function to emitValidationEvent
s for validation failures.- Returns:
- a list of validation events.
-