All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datahub.authorization.AuthorizationResult Maven / Gradle / Ivy

Go to download

DataHub Auth API for developers to write custom Authentication & Authorization plugins for DataHub

There is a newer version: 0.14.1-12rc1
Show newest version
package com.datahub.authorization;

import lombok.AllArgsConstructor;
import lombok.Data;

/** A result returned after requesting authorization for a particular privilege. */
@Data
@AllArgsConstructor
public class AuthorizationResult {
  /** The original authorization request */
  AuthorizationRequest request;

  /** The result type. Allow or deny the authorization request for the actor. */
  public enum Type {
    /** Allow the request - the requested actor is privileged. */
    ALLOW,
    /** Deny the request - the requested actor is not privileged. */
    DENY
  }

  /** The decision - whether to allow or deny the request. */
  public Type type;

  /** Optional message associated with the decision. Useful for debugging. */
  String message;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy