Examples of PasswordCredentials


Examples of org.gradle.internal.resource.PasswordCredentials

    public void registerProjectServices(ServiceRegistration registration) {
    }

    private static class BuildScopeServices {
        PluginResolutionServiceClient createPluginResolutionServiceClient(CacheRepository cacheRepository, StartParameter startParameter) {
            HttpClientHelper http = new HttpClientHelper(new DefaultHttpSettings(new PasswordCredentials()));
            HttpResourceAccessor accessor = new HttpResourceAccessor(http);
            PluginResolutionServiceClient httpClient = startParameter.isOffline()
                    ? new OfflinePluginResolutionServiceClient()
                    : new HttpPluginResolutionServiceClient(accessor);
View Full Code Here

Examples of org.openstack.docs.identity.api.v2.PasswordCredentials

    // }

    @Test
    public void test() throws Exception {
        KeystoneAuthenticationClient client = new KeystoneAuthenticationClient();
        PasswordCredentials passwordCredentials = new PasswordCredentials();
        passwordCredentials.setUsername("user1");
        passwordCredentials.setPassword("secretuser1");

        String tenantId = null;
        client.authenticate(tenantId, passwordCredentials);
    }
View Full Code Here

Examples of org.platformlayer.auth.v1.PasswordCredentials

  }

  @Override
  public PlatformlayerAuthenticationToken authenticateWithPassword(String username, String password)
      throws PlatformlayerAuthenticationClientException {
    PasswordCredentials passwordCredentials = new PasswordCredentials();
    passwordCredentials.setUsername(username);
    passwordCredentials.setPassword(password);

    // TODO: Cache auth tokens??
    AuthenticateResponse response = keystoneUserClient.authenticate(passwordCredentials);
    PlatformlayerAuthenticationToken authToken = new PlatformlayerAuthenticationToken(response.getAccess());
View Full Code Here

Examples of org.platformlayer.auth.v1.PasswordCredentials

  }

  @Override
  public AuthenticationToken getAuthenticationToken() throws PlatformlayerAuthenticationClientException {
    if (token == null) {
      PasswordCredentials passwordCredentials = new PasswordCredentials();
      passwordCredentials.setUsername(username);
      passwordCredentials.setPassword(password);

      AuthenticateResponse response = client.authenticate(passwordCredentials);
      token = new PlatformlayerAuthenticationToken(response.getAccess());
    }
    return token;
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.