Class AuthorizerImpl
java.lang.Object
org.gridgain.internal.rbac.authorization.AuthorizerImpl
- All Implemented Interfaces:
org.gridgain.internal.rbac.authorization.Authorizer
public class AuthorizerImpl
extends Object
implements org.gridgain.internal.rbac.authorization.Authorizer
Implementation of
Authorizer.-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance ofAuthorizerImplwithout event log.AuthorizerImpl(org.apache.ignite.internal.eventlog.api.EventLog eventLog) Create a new instance ofAuthorizerImplwith event log. -
Method Summary
Modifier and TypeMethodDescriptionauthorizeAsync(Set<org.gridgain.internal.rbac.privileges.Privilege> privileges) authorizeAsync(org.gridgain.internal.rbac.privileges.Privilege privilege) authorizeAsync(org.gridgain.internal.security.context.SecurityContext context, Set<org.gridgain.internal.rbac.privileges.Privilege> privileges) authorizeAsync(org.gridgain.internal.security.context.SecurityContext context, org.gridgain.internal.rbac.privileges.Privilege privilege) voidenable(boolean isEnabled) voidinit(org.gridgain.internal.rbac.privileges.PrivilegeChecker privilegeChecker) Second step constructor that will be called by container object to resolve cyclic dependency.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gridgain.internal.rbac.authorization.Authorizer
authorize, authorize, authorizeAsync, authorizeThenCompose, authorizeThenCompose, authorizeThenCompose, authorizeThenCompose, authorizeThenCompose
-
Constructor Details
-
AuthorizerImpl
public AuthorizerImpl(org.apache.ignite.internal.eventlog.api.EventLog eventLog) Create a new instance ofAuthorizerImplwith event log. -
AuthorizerImpl
public AuthorizerImpl()Create a new instance ofAuthorizerImplwithout event log.
-
-
Method Details
-
init
public void init(org.gridgain.internal.rbac.privileges.PrivilegeChecker privilegeChecker) Second step constructor that will be called by container object to resolve cyclic dependency.- Parameters:
privilegeChecker- Privilege checker.
-
authorizeAsync
public CompletableFuture<Void> authorizeAsync(org.gridgain.internal.security.context.SecurityContext context, org.gridgain.internal.rbac.privileges.Privilege privilege) - Specified by:
authorizeAsyncin interfaceorg.gridgain.internal.rbac.authorization.Authorizer
-
authorizeAsync
public CompletableFuture<Void> authorizeAsync(org.gridgain.internal.rbac.privileges.Privilege privilege) - Specified by:
authorizeAsyncin interfaceorg.gridgain.internal.rbac.authorization.Authorizer
-
authorizeAsync
public CompletableFuture<Void> authorizeAsync(org.gridgain.internal.security.context.SecurityContext context, Set<org.gridgain.internal.rbac.privileges.Privilege> privileges) - Specified by:
authorizeAsyncin interfaceorg.gridgain.internal.rbac.authorization.Authorizer
-
authorizeAsync
public CompletableFuture<Void> authorizeAsync(Set<org.gridgain.internal.rbac.privileges.Privilege> privileges) - Specified by:
authorizeAsyncin interfaceorg.gridgain.internal.rbac.authorization.Authorizer
-
enable
public void enable(boolean isEnabled) - Specified by:
enablein interfaceorg.gridgain.internal.rbac.authorization.Authorizer
-