Examples of LdapSecurityLevel


Examples of org.jitterbit.integration.ldap.LdapSecurityLevel

     * @return one of <code>LdapSecurityLevel.NON_SECURE</code>,
     *         <code>LdapSecurityLevel.SECURE</code>, or
     *         <code>LdapSecurityLevel.SECURE_SSL</code>.
     */
    public LdapSecurityLevel getSecurityLevel() {
        LdapSecurityLevel defVal = LdapSecurityLevel.NON_SECURE;
        try {
            int level = getIntProperty(SECURITY_PROPERTY, defVal.getId());
            return LdapSecurityLevel.fromId(level);
        } catch (IllegalArgumentException ex) {
            // This happens if the stored value has become corrupt, for instance if the
            // XML file has been edited by hand.
            return defVal;
View Full Code Here

Examples of org.jitterbit.integration.ldap.LdapSecurityLevel

        layout.add(null, InvisiblePanel.newPanel(getLayout()), false);
    }

    @Override
    public void applyTo(LdapLocation loc) {
        LdapSecurityLevel level = LdapSecurityLevel.NON_SECURE;
        if (secureActivator.isSelected()) {
            level = sslActivator.isSelected() ? LdapSecurityLevel.SECURE_SSL : LdapSecurityLevel.SECURE;
        }
        loc.setSecurityLevel(level);
    }
View Full Code Here

Examples of org.jitterbit.integration.ldap.LdapSecurityLevel

        // Nothing to do.
    }

    @Override
    public void reset(LdapLocation loc) {
        LdapSecurityLevel level = loc.getSecurityLevel();
        secureActivator.setSelected(level != LdapSecurityLevel.NON_SECURE);
        sslActivator.setSelected(level == LdapSecurityLevel.SECURE_SSL);
    }
View Full Code Here

Examples of org.jitterbit.integration.ldap.LdapSecurityLevel

        try {
            String pwd = params.getPassword();
            if (pwd == null && pwdLookup != null) {
                pwd = pwdLookup.lookupPassword(sourceId, targetId);
            }
            LdapSecurityLevel secure = LdapSecurityLevel.fromId(params.getSecurityLevel());
            return new LdapConnectionInfo(params.getServer(), getPort(params), params.getUser(), pwd, secure);
        } catch (/*ServerDb, ServerAccess*/Exception ex) {
            throw new RemoteException(ex.getMessage());
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.ldap.LdapSecurityLevel

                String server = row.get_locator();
                Integer portNumber = row.get_port();
                Port port = (portNumber != null) ? Port.valueOf(portNumber) : null;
                String login = row.get_login();
                String password = getPassword(row);
                LdapSecurityLevel secure = getSecurityLevel(row);
                return new LdapConnectionInfo(server, port, login, password, secure);
            } catch (SQLException ex) {
                throw new LdapException("Failed to create LdapConnectionInfo from the source with id " + id, ex);
            } catch (NullPointerException ex) {
                handleInvalidData("source", id);
View Full Code Here

Examples of org.jitterbit.integration.ldap.LdapSecurityLevel

                String server = row.get_locator();
                Integer portNumber = row.get_port();
                Port port = (portNumber != null) ? Port.valueOf(portNumber) : null;
                String login = row.get_login();
                String password = getPassword(row);
                LdapSecurityLevel secure = getSecurityLevel(row);
                return new LdapConnectionInfo(server, port, login, password, secure);
            } catch (SQLException ex) {
                throw new LdapException("Failed to create LdapConnectionInfo from the target with id " + id, ex);
            } catch (NullPointerException ex) {
                handleInvalidData("target", id);
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.