Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.CredentialsConfig


        return credentialsConfig.getDomain();
    }

    public String getSelectedAuthProfile() {
        CredentialsConfig credentialsConfig = getCredentialsConfig();
        String selectedAuthProfile = credentialsConfig.getSelectedAuthProfile();
        if (selectedAuthProfile == null) {
            //For backward compatibility (4.6.4 or earlier projects)
            String authType = getAuthType();

            if (AuthType.PREEMPTIVE.toString().equals(authType)
View Full Code Here


        removeBasicAuthenticationProfile(AuthType.GLOBAL_HTTP_SETTINGS.toString());
    }

    public Set<String> getBasicAuthenticationProfiles() {
        Set<String> authTypes = new HashSet<String>();
        CredentialsConfig credentialsConfig = getConfig().getCredentials();
        if (credentialsConfig != null) {
            for (String type : credentialsConfig.getAddedBasicAuthenticationTypesList()) {
                if (AuthType.PREEMPTIVE.toString().equals(type)
                        || AuthType.GLOBAL_HTTP_SETTINGS.toString().equals(type)) {
                    authTypes.add(BASIC_AUTH_PROFILE);
                } else {
                    authTypes.add(type);
View Full Code Here

        }
        return authTypes;
    }

    public String getAuthType() {
        CredentialsConfig credentialsConfig = getCredentialsConfig();

        initializeAuthType(credentialsConfig);

        return credentialsConfig.getAuthType().toString();
    }
View Full Code Here

            addedBasicAuthenticationTypesList.add(authType);
        }
    }

    public void removeBasicAuthenticationProfile(String authType) {
        CredentialsConfig credentialsConfig = getCredentialsConfig();
        for (int count = 0; count < credentialsConfig.sizeOfAddedBasicAuthenticationTypesArray(); count++) {
            if (credentialsConfig.getAddedBasicAuthenticationTypesArray(count).equals(authType)) {
                credentialsConfig.removeAddedBasicAuthenticationTypes(count);
                break;
            }
        }
    }
View Full Code Here

        }
    }

    public void setUsername(String username) {
        String old = getUsername();
        CredentialsConfig credentialsConfig = getCredentialsConfig();

        credentialsConfig.setUsername(username);
        notifyPropertyChanged("username", old, username);
    }
View Full Code Here

        notifyPropertyChanged("username", old, username);
    }

    public void setPassword(String password) {
        String old = getPassword();
        CredentialsConfig credentialsConfig = getCredentialsConfig();

        credentialsConfig.setPassword(password);
        notifyPropertyChanged("password", old, password);
    }
View Full Code Here

        notifyPropertyChanged("password", old, password);
    }

    public void setDomain(String domain) {
        String old = getDomain();
        CredentialsConfig credentialsConfig = getCredentialsConfig();

        credentialsConfig.setDomain(domain);
        notifyPropertyChanged("domain", old, domain);
    }
View Full Code Here

        }
    }

    private void setSelectedAuthProfile(String authProfile) {
        String old = getSelectedAuthProfile();
        CredentialsConfig credentialsConfig = getCredentialsConfig();

        credentialsConfig.setSelectedAuthProfile(authProfile);
        notifyPropertyChanged(SELECTED_AUTH_PROFILE_PROPERTY_NAME, old, authProfile);
    }
View Full Code Here

                addBasicAuthenticationProfile(authType.toString());
            }
        }

        String old = getAuthType();
        CredentialsConfig credentialsConfig = getCredentialsConfig();

        credentialsConfig.setAuthType(authType);
        notifyPropertyChanged("authType", old, authType);
    }
View Full Code Here

        credentialsConfig.setAuthType(authType);
        notifyPropertyChanged("authType", old, authType);
    }

    public boolean getPreemptive() {
        CredentialsConfig credentialsConfig = getCredentialsConfig();
        if (AuthType.PREEMPTIVE.toString().equals(getAuthType()) && !credentialsConfig.getPreemptive()) {
            credentialsConfig.setPreemptive(true);
        }
        return credentialsConfig.getPreemptive();
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.config.CredentialsConfig

Copyright © 2018 www.massapicom. 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.