Examples of grant()


Examples of com.dbxml.db.common.security.AccessManagerClient.grant()

      return "Grant";
   }

   protected void process(String path, String roleID, int permissions) throws dbXMLException {
      AccessManagerClient manager = new AccessManagerClient(cl.getClient());
      manager.grant(path, roleID, permissions);
   }
}
View Full Code Here

Examples of com.sun.jini.start.AggregatePolicyProvider.grant()

  } catch (NullPointerException e) {
  }
  policy.setPolicy(null, new DynamicPolicyProvider());
  policy.setPolicy(NullCasesTest.class.getClassLoader(), null);

  policy.grant(null, null, null);
  try {
      policy.grant(null, new Principal[]{ null }, null);
      throw new TestException("Successfully granted: "
                    + "null, new Principal[]{ null }, null");
  } catch (NullPointerException e) {
View Full Code Here

Examples of mondrian.olap.RoleImpl.grant()

            if(cubeDimKey.equalsIgnoreCase(dimName)) {
              logger.debug("DataSecurityManager::setMondrianRole: dimension found into the cube");
             mondrian.olap.Hierarchy[] hierarchies = dim.getHierarchies();
             if(hierarchies == null || hierarchies.length == 0) {
               if(dimAccess.equalsIgnoreCase("none")) {
                 connRole.grant(dim, Access.NONE);
                 logger.debug("DataSecurityManager::setMondrianRole: setted access.none to the dimension")
               } else {
                 connRole.grant(dim, Access.ALL);
                 logger.debug("DataSecurityManager::setMondrianRole: setted access.all to the dimension");
               }
View Full Code Here

Examples of net.jini.security.policy.DynamicPolicy.grant()

  DynamicPolicy dpolicy = (DynamicPolicy) policy;
  Principal[] principals = getCurrentPrincipals();
  Permission[] permissions =
      grantablePermissions(dpolicy.getGrants(fromClass, principals));

  dpolicy.grant(toClass, principals, permissions);
  if (policyLogger.isLoggable(Level.FINER)) {
      policyLogger.log(Level.FINER, "granted {0} from {1} to {2}, {3}",
    new Object[]{
        (permissions != null) ? Arrays.asList(permissions) : null,
        fromClass.getName(),
View Full Code Here

Examples of net.jini.security.policy.DynamicPolicyProvider.grant()

    public static void main(String[] args) throws Exception {
  if (System.getSecurityManager() == null) {
      System.setSecurityManager(new SecurityManager());
  }
  DynamicPolicyProvider policy = new DynamicPolicyProvider();
  policy.grant(null, null, null);
  try {
      policy.grant(null, new Principal[]{ null }, null);
      throw new Error();
  } catch (NullPointerException e) {
  }
View Full Code Here

Examples of net.jini.security.policy.DynamicPolicyProvider.grant()

      System.setSecurityManager(new SecurityManager());
  }
  DynamicPolicyProvider policy = new DynamicPolicyProvider();
  policy.grant(null, null, null);
  try {
      policy.grant(null, new Principal[]{ null }, null);
      throw new Error();
  } catch (NullPointerException e) {
  }
  try {
      policy.grant(null, null, new Permission[]{ null });
View Full Code Here

Examples of net.jini.security.policy.DynamicPolicyProvider.grant()

      policy.grant(null, new Principal[]{ null }, null);
      throw new Error();
  } catch (NullPointerException e) {
  }
  try {
      policy.grant(null, null, new Permission[]{ null });
      throw new Error();
  } catch (NullPointerException e) {
  }
  policy.getGrants(null, null);
  try {
View Full Code Here

Examples of nl.nuggit.swaf.model.Context.grant()

        if (context == null) {
            boolean isAuthenticated = authenticationService.authenticate(principal, credentials[1]);
            if (isAuthenticated) {
                String token = UUID.randomUUID().toString();
                context = new Context(token, principal);
                context.grant(Permission.ACCESS);
                contexts.put(token, context);
                LOG.debug(String.format("Added principal %s to context store", principal));
            }
        }
        else {
View Full Code Here

Examples of org.apache.hadoop.hbase.security.access.AccessControllerProtocol.grant()

    // Grant TABLE ADMIN privs on test table to UserA
    HTable acl = new HTable(conf, AccessControlLists.ACL_TABLE_NAME);
    try {
      AccessControllerProtocol protocol = acl.coprocessorProxy(
          AccessControllerProtocol.class, TEST_TABLE);
      protocol.grant(new UserPermission(Bytes.toBytes(TABLE_ADMIN.getShortName()),
        TEST_TABLE, null, Permission.Action.ADMIN));
    } finally {
      acl.close();
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.security.access.AccessControllerProtocol.grant()

    // Grant TABLE ADMIN privs
    HTable acl = new HTable(conf, AccessControlLists.ACL_TABLE_NAME);
    try {
      AccessControllerProtocol protocol = acl.coprocessorProxy(
          AccessControllerProtocol.class, tableName);
      protocol.grant(new UserPermission(Bytes.toBytes(tableAdmin.getShortName()),
        tableName, null, Permission.Action.ADMIN));
    } finally {
      acl.close();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.