com.datahub.authorization.AuthorizationSession 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 javax.annotation.Nonnull;
import javax.annotation.Nullable;
/** Combines a common interface for actor and authorizer which is cached per session */
public interface AuthorizationSession {
AuthorizationResult authorize(
@Nonnull final String privilege, @Nullable final EntitySpec resourceSpec);
}