Interface Authorizer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorizationResultauthorize(AuthorizationRequest request)Authorizes an action based on the actor, the resource, and required privileges.AuthorizedActorsauthorizedActors(java.lang.String privilege, java.util.Optional<ResourceSpec> resourceSpec)Retrieves the current list of actors authorized to for a particular privilege against an optional resourcevoidinit(java.util.Map<java.lang.String,java.lang.Object> authorizerConfig, AuthorizerContext ctx)Initialize the Authorizer.
-
-
-
Method Detail
-
init
void init(@Nonnull java.util.Map<java.lang.String,java.lang.Object> authorizerConfig, @Nonnull AuthorizerContext ctx)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
AuthorizationResult authorize(@Nonnull AuthorizationRequest request)
Authorizes an action based on the actor, the resource, and required privileges.
-
authorizedActors
AuthorizedActors authorizedActors(java.lang.String privilege, java.util.Optional<ResourceSpec> resourceSpec)
Retrieves the current list of actors authorized to for a particular privilege against an optional resource
-
-