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 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 provided authScheme 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 emit ValidationEvents for validation failures.
        Returns:
        a list of validation events.