Interface Authorizer
- All Superinterfaces:
Plugin
An Authorizer is responsible for determining whether an actor should be granted a specific
privilege.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault AuthorizationResultauthorize(AuthorizationRequest request) Authorizes an action based on the actor, the resource, and required privileges.default AuthorizedActorsauthorizedActors(String privilege, Optional<EntitySpec> resourceSpec) Retrieves the current list of actors authorized to for a particular privilege against an optional resourcedefault Collection<com.linkedin.common.urn.Urn>getActorGroups(com.linkedin.common.urn.Urn actorUrn) Given the actor's urn retrieve the actor's groupsdefault Collection<com.linkedin.common.urn.Urn>getActorPeers(com.linkedin.common.urn.Urn actorUrn) Given an actor's urn retrieve the actor's peersdefault Set<com.linkedin.policy.DataHubPolicyInfo>getActorPolicies(com.linkedin.common.urn.Urn actorUrn) Given the actor's urn retrieve the policies.default voidinit(Map<String, Object> authorizerConfig, AuthorizerContext ctx) Initialize the Authorizer.
-
Field Details
-
EMPTY
-
-
Method Details
-
init
Initialize the Authorizer. Invoked once at boot time.- Parameters:
authorizerConfig- config provided to the authenticator derived from the Metadata Service YAML config. This config comes from the "authorization.authorizers.config" configuration.
-
authorize
Authorizes an action based on the actor, the resource, and required privileges. -
authorizedActors
Retrieves the current list of actors authorized to for a particular privilege against an optional resource -
getActorPolicies
default Set<com.linkedin.policy.DataHubPolicyInfo> getActorPolicies(@Nonnull com.linkedin.common.urn.Urn actorUrn) Given the actor's urn retrieve the policies.- Parameters:
actorUrn-- Returns:
-
getActorGroups
default Collection<com.linkedin.common.urn.Urn> getActorGroups(@Nonnull com.linkedin.common.urn.Urn actorUrn) Given the actor's urn retrieve the actor's groups -
getActorPeers
default Collection<com.linkedin.common.urn.Urn> getActorPeers(@Nonnull com.linkedin.common.urn.Urn actorUrn) Given an actor's urn retrieve the actor's peers
-