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

    Constructors
    Constructor
    Description
    Create a new instance of AuthorizerImpl without event log.
    AuthorizerImpl(org.apache.ignite.internal.eventlog.api.EventLog eventLog)
    Create a new instance of AuthorizerImpl with event log.
  • Method Summary

    Modifier and Type
    Method
    Description
    authorizeAsync(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)
     
    void
    enable(boolean isEnabled)
     
    void
    init(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, wait

    Methods 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 of AuthorizerImpl with event log.
    • AuthorizerImpl

      public AuthorizerImpl()
      Create a new instance of AuthorizerImpl without 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:
      authorizeAsync in interface org.gridgain.internal.rbac.authorization.Authorizer
    • authorizeAsync

      public CompletableFuture<Void> authorizeAsync(org.gridgain.internal.rbac.privileges.Privilege privilege)
      Specified by:
      authorizeAsync in interface org.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:
      authorizeAsync in interface org.gridgain.internal.rbac.authorization.Authorizer
    • authorizeAsync

      public CompletableFuture<Void> authorizeAsync(Set<org.gridgain.internal.rbac.privileges.Privilege> privileges)
      Specified by:
      authorizeAsync in interface org.gridgain.internal.rbac.authorization.Authorizer
    • enable

      public void enable(boolean isEnabled)
      Specified by:
      enable in interface org.gridgain.internal.rbac.authorization.Authorizer