com.datahub.authorization.AuthorizationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datahub-auth-api Show documentation
Show all versions of datahub-auth-api Show documentation
DataHub Auth API for developers to write custom Authentication & Authorization plugins for DataHub
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;
}