Package org.cfcc.utils

Examples of org.cfcc.utils.Crypto.decrypt()


        // check for an encrypted password
        if (passwd.startsWith(Crypto.prefix())) {
            Crypto c = new Crypto();
            try {
                passwd = c.decrypt(passwd);
            } catch (CryptoException ex) {
                throw new UniException("Unable to decrypt password", UniException.UNISESSION_EXCEPTION);
            }
        }
View Full Code Here


    public void testBlindSSL() throws Exception {
        String bind_pw = test_prop.getProperty("LDAP_PASSWORD");
        if (bind_pw.startsWith(Crypto.prefix())) {
            Crypto c = new Crypto();
            try {
                bind_pw = c.decrypt(bind_pw);
            } catch (CryptoException ex) {
                throw new NamingException(ex.toString());
            }
        }
        Hashtable<String, String> env = new Hashtable<String, String>(11);
View Full Code Here

        env.put(Context.SECURITY_AUTHENTICATION, "simple");
        env.put(Context.SECURITY_PRINCIPAL, bind_dn);
        if (bind_pw.startsWith(Crypto.prefix())) {
            Crypto c = new Crypto();
            try {
                bind_pw = c.decrypt(bind_pw);
            } catch (CryptoException ex) {
                throw new NamingException(ex.toString());
            }
        }
        env.put(Context.SECURITY_CREDENTIALS, bind_pw);
View Full Code Here

        this(domain);

        // check for an encrypted password
        if (adminPassword.startsWith(Crypto.prefix())) {
            Crypto c = new Crypto();
            adminPassword = c.decrypt(adminPassword);
        }

        // Configure all of the different Provisioning services
        userService = new UserService("CFCC-ResetPassword-3.0");
        userService.setUserCredentials(adminEmail, adminPassword);
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.