Examples of PasswordCredentials


Examples of com.maverick.http.PasswordCredentials

        if (!requestProcessor.getWebForward().getPreferredAuthenticationScheme().equals(HttpAuthenticatorFactory.NONE) && !requestProcessor.getWebForward()
                .getAuthenticationUsername()
                .equals("")
          && !requestProcessor.getWebForward().getAuthenticationPassword().equals("")) {
          PasswordCredentials pwd = new PasswordCredentials();
          pwd.setUsername(SessionInfoReplacer.replace(requestProcessor.getSessionInfo(), requestProcessor.getWebForward()
                  .getAuthenticationUsername()));
          pwd.setPassword(SessionInfoReplacer.replace(requestProcessor.getSessionInfo(), requestProcessor.getWebForward()
                  .getAuthenticationPassword()));
          client.setCredentials(pwd);
        }

        // Set the preferred scheme
View Full Code Here

Examples of com.maverick.http.PasswordCredentials

        client.setIncludeCookies(false);
       
        if (!webForward.getPreferredAuthenticationScheme().equals(HttpAuthenticatorFactory.NONE) && !webForward.getAuthenticationUsername()
                .equals("")
          && !webForward.getAuthenticationPassword().equals("")) {
          PasswordCredentials pwd = new PasswordCredentials();
          pwd.setUsername(SessionInfoReplacer.replace(launchSession.getSession(), webForward.getAuthenticationUsername()));
          pwd.setPassword(SessionInfoReplacer.replace(launchSession.getSession(), webForward.getAuthenticationPassword()));
          client.setCredentials(pwd);
        }

        // Set the preferred scheme
        client.setPreferredAuthentication(webForward.getPreferredAuthenticationScheme());
View Full Code Here

Examples of com.maverick.http.PasswordCredentials

        System.setProperty("com.maverick.ssl.allowUntrustedCertificates", "true");
        System.setProperty("com.maverick.ssl.allowInvalidCertificates", "true");
       
        HttpClient client = new HttpClient("127.0.0.1", 443, true);
        GetMethod get = new GetMethod("AGENT", "/");
        client.setCredentials(new PasswordCredentials("lee", "xxxxxxxxxx"));
        client.setPreemtiveAuthentication(true);
       
        HttpResponse response = client.execute(get);
       
        c = new MultiplexedConnection(new SocketChannelFactory());
View Full Code Here

Examples of com.maverick.http.PasswordCredentials

    // Show dialog

    try {
      if (opt.open()) {
        authenticator.setCredentials(new PasswordCredentials(usernameText.getText().trim(), passwordText.getText()));
        if (domainText != null && !domainText.getText().trim().equals("")) { //$NON-NLS-1$
          ((NTLMAuthentication) authenticator).setDomain(domainText.getText().trim());
        }
        return true;
      }
View Full Code Here

Examples of com.maverick.http.PasswordCredentials

                }
            });
        }

        if (dialog.dialogPrompt(null, Messages.getString("AuthenticationDialog.title")) == OptionDialog.CHOICE_OK) { //$NON-NLS-1$
            authenticator.setCredentials(new PasswordCredentials(username.getText().trim(), password.getText()));
            if (authenticator instanceof NTLMAuthentication && !domain.getText().trim().equals("")) { //$NON-NLS-1$
                ((NTLMAuthentication) authenticator).setDomain(domain.getText().trim());
            }
            return true;
        }
View Full Code Here

Examples of com.maverick.http.PasswordCredentials

                    int port = Integer.parseInt(proxyPort);

                    HttpClient client = new HttpClient(proxyHost, port, isSecure);
                    HttpMethod method = new ConnectMethod(url.getHost(), url.getPort() == -1 ? 443 : url.getPort(), true);

                    PasswordCredentials credentials = new PasswordCredentials();
                    credentials.setUsername(proxyUsername);
                    credentials.setPassword(proxyPassword);

                    client.setCredentials(credentials);

                    HttpResponse response = client.execute(method);
                    socket = response.getConnection().getSocket();
View Full Code Here

Examples of io.fathom.cloud.openstack.client.identity.model.V2AuthRequest.PasswordCredentials

    public static AuthTokenProvider build(OpenstackIdentityClient identityClient, String tenant, String username,
            String password) {
        V2AuthRequest request = new V2AuthRequest();
        request.auth = new V2AuthRequest.V2AuthCredentials();
        request.auth.tenantName = tenant;
        request.auth.passwordCredentials = new PasswordCredentials();
        request.auth.passwordCredentials.username = username;
        request.auth.passwordCredentials.password = password;

        return new AuthTokenProvider(identityClient, request);
    }
View Full Code Here

Examples of org.apache.hadoop.fs.swift.auth.PasswordCredentials

                            + SWIFT_APIKEY_PROPERTY);
        }
        //create the (reusable) authentication request
        if (password != null) {
            authRequest = new PasswordAuthenticationRequest(tenant,
                    new PasswordCredentials(
                            username,
                            password));
        } else {
            authRequest = new ApiKeyAuthenticationRequest(tenant,
                    new ApiKeyCredentials(
View Full Code Here

Examples of org.gradle.api.artifacts.repositories.PasswordCredentials

    public RemoteRepository create() {
        RemoteRepository remoteRepository = new RemoteRepository();
        remoteRepository.setUrl(artifactRepository.getUrl().toString());

        PasswordCredentials credentials = artifactRepository.getCredentials();
        String username = credentials.getUsername();
        String password = credentials.getPassword();

        if (username != null || password != null) {
            Authentication authentication = new Authentication();
            authentication.setUserName(username);
            authentication.setPassword(password);
View Full Code Here

Examples of org.gradle.internal.resource.PasswordCredentials

            this.host = host;
            this.port = port;
            if (username == null || username.length() == 0) {
                credentials = null;
            } else {
                credentials = new PasswordCredentials(username, password);
            }
        }
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.