Examples of authorize()


Examples of org.apache.ftpserver.usermanager.impl.WritePermission.authorize()

        WritePermission permission = new WritePermission("/bar");

        assertNull(permission.authorize(new WriteRequest("/foo")));
        assertNull(permission.authorize(new WriteRequest("/foo/bar")));
        assertNotNull(permission.authorize(new WriteRequest("/bar")));
        assertNotNull(permission.authorize(new WriteRequest("/bar/foo")));
    }

}
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider.authorize()

    if (op == null) {
      throw new HiveException("Operation should not be null");
    }
    HiveAuthorizationProvider authorizer = ss.getAuthorizer();
    if (op.equals(HiveOperation.CREATEDATABASE)) {
      authorizer.authorize(
          op.getInputRequiredPrivileges(), op.getOutputRequiredPrivileges());
    } else if (op.equals(HiveOperation.CREATETABLE_AS_SELECT)
        || op.equals(HiveOperation.CREATETABLE)) {
      authorizer.authorize(
          db.getDatabase(SessionState.get().getCurrentDatabase()), null,
View Full Code Here

Examples of org.apache.hadoop.security.authorize.ServiceAuthorizationManager.authorize()

      } catch (ClassNotFoundException cfne) {
        throw new AuthorizationException("Unknown protocol: "
            + connection.getProtocol());
      }
      ServiceAuthorizationManager authManager = new ServiceAuthorizationManager();
      authManager.authorize(user, protocol, getConf(), addr);
    }
  }

  /**
   * The number of open RPC conections
View Full Code Here

Examples of org.apache.lenya.ac.AccessController.authorize()

            if (this.machineIp != null) {
                Machine machine = new Machine(this.machineIp);
                identity.addIdentifiable(machine);
            }

            controller.authorize(request);

        } finally {
            if (selector != null) {
                if (acResolver != null) {
                    if (controller != null) {
View Full Code Here

Examples of org.apache.sentry.binding.hive.authz.HiveAuthzBinding.authorize()

        List<List<DBModelAuthorizable>> outputHierarchy = new ArrayList<List<DBModelAuthorizable>> ();
        List<DBModelAuthorizable> serverHierarchy = new ArrayList<DBModelAuthorizable>();

        serverHierarchy.add(hiveAuthzBinding.getAuthServer());
        outputHierarchy.add(serverHierarchy);
        hiveAuthzBinding.authorize(HiveOperation.QUERY,
          HiveAuthzPrivilegesMap.getHiveExtendedAuthzPrivileges(HiveExtendedOperation.TRANSFORM),
          new Subject(hookContext.getUserName()), inputHierarchy, outputHierarchy);
      }
    } finally {
      if (hiveAuthzBinding != null) {
View Full Code Here

Examples of org.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine.authorize()

        AuthorizationEngine authEngine = listener == null ? null : listener.getAuthorizationEngine();
        if (authEngine != null) {
          BaseData baseData = (BaseData) ((AbstractBundle) bundle).getBundleData();
          SignedStorageHook hook = (SignedStorageHook) baseData.getStorageHook(SignedStorageHook.KEY);
          SignedContent signedContent = hook != null ? hook.signedContent : null;
          authEngine.authorize(signedContent, bundle);
        }
        break;
      default :
        break;
    }
View Full Code Here

Examples of org.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine.authorize()

  }

  private void checkAuthorization(SignedContentImpl signedContent, Bundle bundle) {
    AuthorizationEngine authEngine = getAuthorizationEngine();
    if (authEngine != null)
      authEngine.authorize(signedContent, bundle);
  }

  AuthorizationEngine getAuthorizationEngine() {
    return (AuthorizationEngine) authorizationTracker.getService();
  }
View Full Code Here

Examples of org.eclipse.osgi.internal.provisional.service.security.AuthorizationEngine.authorize()

  }

  private void checkAuthorization(SignedContentImpl signedContent, Bundle bundle) {
    AuthorizationEngine authEngine = getAuthorizationEngine();
    if (authEngine != null)
      authEngine.authorize(signedContent, bundle);
  }

  AuthorizationEngine getAuthorizationEngine() {
    return authorizationTracker.getService();
  }
View Full Code Here

Examples of org.encuestame.utils.oauth.StandardOAuthSession.authorize()

        log.debug("Authorize session");
        if (session.authorized()) {
            throw new IllegalStateException("OAuthSession is already authorized");
        }
        log.debug("Authorize session RT "+session.getRequestToken());
        session.authorize(authorizingAccountId, verifier);
        return session;
    }


    /**
 
View Full Code Here

Examples of org.globus.ftp.FTPClient.authorize()

        }
      } else if (remoteProtocol.equals("ftp")) {
         // set up globus FTP client
        try {
          FTPClient ftp = new FTPClient(remoteSite, 21);
          ftp.authorize(remoteUser, remotePassword);
          ftp.setType(Session.TYPE_IMAGE);
          DataSinkStream outputSink = new DataSinkStream(output);
          ftp.get(remotePath, outputSink, null);
        } catch (Exception e) {
          Log.error(Log.RESOURCES,"Problem with ftp from site: "+remoteUser+"@"+remoteSite+":"+remotePath);
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.