Examples of PlainTextPasswordCipher


Examples of org.apache.openejb.cipher.PlainTextPasswordCipher

public class PasswordCodecTest extends TestCase {

    private static final String PLAIN_PWD = "david";

    public void testPlainCodec() {
        final PasswordCipher cipher = new PlainTextPasswordCipher();
        assertEquals(PLAIN_PWD, new String(cipher.encrypt(PLAIN_PWD)));
        assertEquals(PLAIN_PWD, cipher.decrypt(PLAIN_PWD.toCharArray()));
    }
View Full Code Here

Examples of org.apache.openejb.cipher.PlainTextPasswordCipher

public class PasswordCodecTest extends TestCase {

    private static final String PLAIN_PWD = "david";

    public void testPlainCodec() {
        final PasswordCipher cipher = new PlainTextPasswordCipher();
        assertEquals(PLAIN_PWD, new String(cipher.encrypt(PLAIN_PWD)));
        assertEquals(PLAIN_PWD, cipher.decrypt(PLAIN_PWD.toCharArray()));
    }
View Full Code Here

Examples of org.apache.openejb.resource.jdbc.cipher.PlainTextPasswordCipher

public class PasswordCodecTest extends TestCase {
 
  private static final String PLAIN_PWD = "david";
 
    public void testPlainCodec() {
      PasswordCipher cipher = new PlainTextPasswordCipher();
      assertEquals(PLAIN_PWD, new String(cipher.encrypt(PLAIN_PWD)));
      assertEquals(PLAIN_PWD, cipher.decrypt(PLAIN_PWD.toCharArray()));
    }
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.