Interface AuthSchemeValidator
-
- All Superinterfaces:
java.util.function.Predicate<java.lang.String>
public interface AuthSchemeValidator extends java.util.function.Predicate<java.lang.String>
Validates an authentication scheme after passing a predicate check.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ValidationEvent>
validateScheme(java.util.Map<Identifier,Literal> authScheme, FromSourceLocation sourceLocation, java.util.function.BiFunction<FromSourceLocation,java.lang.String,ValidationEvent> emitter)
Validates that the providedauthScheme
matches required modeling behavior, emitting events for any failures.
-
-
-
Method Detail
-
validateScheme
java.util.List<ValidationEvent> validateScheme(java.util.Map<Identifier,Literal> authScheme, FromSourceLocation sourceLocation, java.util.function.BiFunction<FromSourceLocation,java.lang.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.
-
-