Interface JwtConstraint

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface JwtConstraint
    A JwtConstraint represents an individual check that can applied to test a JWT.
    • Method Detail

      • apply

        Promise<Result,​NeverThrowsException> apply​(ValidatorContraintContext constraintContext,
                                                         Jwt jwt)
        Apply a constraint to the given JWT.
        Parameters:
        constraintContext - The validation context used to hold data between constraints validation
        jwt - The JWT on which to apply the JwtConstraint.
        Returns:
        a Result promise for this JwtConstraint.