Package org.apache.cayenne.configuration
Class PlainTextPasswordEncoder
java.lang.Object
org.apache.cayenne.configuration.PlainTextPasswordEncoder
- All Implemented Interfaces:
- PasswordEncoding
public class PlainTextPasswordEncoder extends Object implements PasswordEncoding
The plain text password encoder passes the text of the database password
 straight-through without any alteration. This is identical to the behavior of pre-3.0
 versions of Cayenne, where the password was stored in the XML model in clear text.
- Since:
- 3.0
- 
Field SummaryFields inherited from interface org.apache.cayenne.configuration.PasswordEncodingstandardEncoders
- 
Constructor SummaryConstructors Constructor Description PlainTextPasswordEncoder()
- 
Method SummaryModifier and Type Method Description StringdecodePassword(String encodedPassword, String key)Decodes an encoded database password.StringencodePassword(String normalPassword, String key)Encodes a normal/plain database password.
- 
Constructor Details- 
PlainTextPasswordEncoderpublic PlainTextPasswordEncoder()
 
- 
- 
Method Details- 
decodePasswordDescription copied from interface:PasswordEncodingDecodes an encoded database password.- Specified by:
- decodePasswordin interface- PasswordEncoding
- Parameters:
- encodedPassword- - The encoded password to be decoded
- key- - An optional data element which can be used to unlock the password. Some encoders may require the key.
- Returns:
- The decoded normal/plain password.
 
- 
encodePasswordDescription copied from interface:PasswordEncodingEncodes a normal/plain database password.- Specified by:
- encodePasswordin interface- PasswordEncoding
- Parameters:
- normalPassword- - The normal/plain password to be encoded
- key- - An optional data element which can be used to lock the password. Some encoders may require the key.
- Returns:
- The encoded password.
 
 
-