org.apache.openejb.resource.jdbc
Class PlainTextPasswordCipher

java.lang.Object
  extended by org.apache.openejb.resource.jdbc.PlainTextPasswordCipher
All Implemented Interfaces:
PasswordCipher

public class PlainTextPasswordCipher
extends Object
implements PasswordCipher

This PlainTextPasswordCipher is an PasswordCipher implementation that does not use any encryption/decryption algorithm at all.


Constructor Summary
PlainTextPasswordCipher()
           
 
Method Summary
 String decrypt(char[] encryptedPassword)
          Returns the encryptedPassword as plain text string.
 char[] encrypt(String plainPassword)
          Returns the plainPassword as plain text character array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextPasswordCipher

public PlainTextPasswordCipher()
Method Detail

decrypt

public String decrypt(char[] encryptedPassword)
Returns the encryptedPassword as plain text string.

Specified by:
decrypt in interface PasswordCipher
Parameters:
encryptedPassword - the encoded password
Returns:
String the decoded password
See Also:
PasswordCipher.decrypt(char[])

encrypt

public char[] encrypt(String plainPassword)
Returns the plainPassword as plain text character array.

Specified by:
encrypt in interface PasswordCipher
Parameters:
plainPassword - the plain-text password
Returns:
the plain-text password as character array
See Also:
PasswordCipher.encrypt(java.lang.String)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.