Package org.owasp.webscarab.plugin

Examples of org.owasp.webscarab.plugin.BasicCredential


        String realm = realmTextArea.getText();
        String username = usernameTextField.getText();
        String password = new String(passwordTextField.getPassword());
        if (!(username.equals("") || password.equals(""))) {
            if (basicRadioButton.isSelected()) {
                BasicCredential bc = new BasicCredential(host, realm, username, password);
                _manager.addBasicCredentials(bc);
            } else if (domainRadioButton.isSelected()) {
                DomainCredential dc = new DomainCredential(host, domain, username, password);
                _manager.addDomainCredentials(dc);
            }
View Full Code Here


        public int getRowCount() {
            return _manager.getBasicCredentialCount();
        }

        public Object getValueAt(int row, int column) {
            BasicCredential bc = _manager.getBasicCredentialAt(row);
            switch (column) {
                case 0: return bc.getHost();
                case 1: return bc.getRealm();
                case 2: return bc.getUsername();
            }
            return null;
        }
View Full Code Here

TOP

Related Classes of org.owasp.webscarab.plugin.BasicCredential

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.