com.novell.nds.dirxml.util.mail
Class SMTPPassword
java.lang.Object
com.novell.nds.dirxml.util.mail.SMTPPassword
- public class SMTPPassword
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PWD_ENCODE_MARKER
public static final String PWD_ENCODE_MARKER
- See Also:
- Constant Field Values
SMTPPassword
public SMTPPassword()
decode
public static String decode(String pwd)
- Decodes an encoded password. If the password isn't encoded,
the original input String is returned.
Encoded passwords are of the form:
^[]BCAEFDG
First, the marker is stripped of resulting in:
BCAEFDG
Then, the bytes are shifted resulting in:
ABCDEFG
Finally, this is base64 decoded and the resultant String is
returned.