/*
 * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2014, Gluu
 */

package org.xdi.oxauth.ws.rs;

import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import org.xdi.oxauth.BaseTest;
import org.xdi.oxauth.service.EncryptionService;
import org.xdi.util.security.StringEncrypter;

/**
 * @author Javier Rojas Blum Date: 05.30.2012
 */
public class KeyGenerationTest extends BaseTest {

    @Parameters({"ldapAdminPassword"})
    @Test
    public void encryptLdapPassword(final String ldapAdminPassword) throws Exception {
        showTitle("TEST: encryptLdapPassword");

        String password = EncryptionService.instance().encrypt(ldapAdminPassword);
        System.out.println("Encrypted LDAP Password: " + password);
    }
}
@@ -332,54 +332,8 @@
 ice;
-%0Aimport org.xdi.util.security.StringEncrypter;
 %0A%0A/*
@@ -571,16 +571,112 @@
 ption %7B%0A
+    %09new ComponentTest() %7B%0A%09%09%09@Override%0A%09%09%09protected void testComponents() throws Exception %7B%0A%09%09
         
@@ -716,16 +716,18 @@
 ord%22);%0A%0A
+%09%09
         
@@ -797,24 +797,26 @@
 nPassword);%0A
+%09%09
         Syst
@@ -871,15 +871,34 @@
 sword);%0A
+%09%09%09%7D%0A    %09%7D.run();%0A
     %7D%0A%7D

Fix ldap password test