org.apache.openejb.cipher
Class PlainTextPasswordCipher
java.lang.Object
org.apache.openejb.cipher.PlainTextPasswordCipher
- All Implemented Interfaces:
- PasswordCipher
- Direct Known Subclasses:
- PlainTextPasswordCipher
public class PlainTextPasswordCipher
- extends Object
- implements PasswordCipher
This PlainTextPasswordCipher is an PasswordCipher
implementation that does not use any encryption/decryption algorithm at all.
|
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 |
PlainTextPasswordCipher
public PlainTextPasswordCipher()
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(String)
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.