Examples of PassportClient


Examples of co.cask.cdap.passport.http.client.PassportClient

    }

    configuration.set(Constants.CFG_DATA_INMEMORY_PERSISTENCE, Constants.InMemoryPersistenceType.LEVELDB.name());

    String passportUri = configuration.get(Constants.Gateway.CFG_PASSPORT_SERVER_URI);
    final PassportClient client = passportUri == null || passportUri.isEmpty() ? new PassportClient()
      : PassportClient.create(passportUri);

    return ImmutableList.of(
      new AbstractModule() {
        @Override
View Full Code Here

Examples of co.cask.cdap.passport.http.client.PassportClient

  @Singleton
  public final Authenticator providesAuthenticator(CConfiguration cConf,
                                                          @Nullable Provider<PassportClient> passportClientProvider) {
    Authenticator authenticator;
    if (requireAuthentication(cConf)) {
      PassportClient passportClient;
      passportClient = passportClientProvider == null ? getPassportClient(cConf) : passportClientProvider.get();
      Preconditions.checkNotNull(passportClient, "Passport client cannot be null when authentication required");

      String clusterName = cConf.get(Constants.Gateway.CLUSTER_NAME,
                                     Constants.Gateway.CLUSTER_NAME_DEFAULT);
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.