Package org.apache.openejb.cipher

Examples of org.apache.openejb.cipher.StaticDESPasswordCipher.decrypt()


    }

    public void testStaticDesCodec() {
        final PasswordCipher cipher = new StaticDESPasswordCipher();
        final char[] tmp = cipher.encrypt(PLAIN_PWD);
        assertEquals(PLAIN_PWD, cipher.decrypt(tmp));
    }

    public void testGetDataSourcePlugin() throws Exception {
        // all current known plugins
        assertPluginClass("PlainText", PlainTextPasswordCipher.class);
View Full Code Here


    }

    public void testStaticDesCodec() {
        final PasswordCipher cipher = new StaticDESPasswordCipher();
        final char[] tmp = cipher.encrypt(PLAIN_PWD);
        assertEquals(PLAIN_PWD, cipher.decrypt(tmp));
    }

    public void testGetDataSourcePlugin() throws Exception {
        // all current known plugins
        assertPluginClass("PlainText", PlainTextPasswordCipher.class);
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.