Interface OnCallGenkit.AuthPolicy

Enclosing class:
OnCallGenkit
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 static interface OnCallGenkit.AuthPolicy
Functional interface for authorization policies.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the request is authorized.
  • Method Details

    • isAuthorized

      boolean isAuthorized(AuthContext auth)
      Checks if the request is authorized.
      Parameters:
      auth - the auth context
      Returns:
      true if authorized