Class AuthorizationResult


  • public class AuthorizationResult
    extends Object
    Implementation of AuthorizationProvider will return AuthorizationResult after validating incoming requests to Feast Core. AuthorizationResult provides methods to check if user is authorized to perform an action or not.
    • Constructor Detail

      • AuthorizationResult

        public AuthorizationResult()
    • Method Detail

      • create

        public static AuthorizationResult create​(@Nullable
                                                 boolean allowed,
                                                 @Nullable
                                                 String failureReason)
        Method to create AuthorizationResult Object.
        Parameters:
        allowed - True If user is authorized, False otherwise.
        failureReason - Reason for authorization failure, if any
        Returns:
        AuthorizationResult Object.
      • failed

        public static AuthorizationResult failed​(@Nullable
                                                 String failureReason)
        Method to create failed AuthorizationResult Object.
        Parameters:
        failureReason - Reason for authorization failure, if any or Null
        Returns:
        AuthorizationResult Object.
      • success

        public static AuthorizationResult success()
        Method to create Success AuthorizationResult Object.
        Returns:
        AuthorizationResult Object.