Class PasswordMapper
- java.lang.Object
-
- org.apache.manifoldcf.ui.passwords.PasswordMapper
-
public class PasswordMapper extends java.lang.Object
This object manages a session-based map of password keys.
-
-
Constructor Summary
Constructors Constructor Description PasswordMapper()
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.String
generateRandomPrefix()
Generate a random prefix that will not likely collide with any passwordjava.lang.String
mapKeyToPassword(java.lang.String key)
Map a key back to a password.java.lang.String
mapPasswordToKey(java.lang.String password)
Map a password to a key.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
pickChars
protected static char[] pickChars
-
-
Method Detail
-
mapPasswordToKey
public java.lang.String mapPasswordToKey(java.lang.String password)
Map a password to a key.- Parameters:
password
- is the password.- Returns:
- the key.
-
mapKeyToPassword
public java.lang.String mapKeyToPassword(java.lang.String key)
Map a key back to a password.- Parameters:
key
- is the key (or a password, if changed)- Returns:
- the password.
-
generateRandomPrefix
protected static java.lang.String generateRandomPrefix()
Generate a random prefix that will not likely collide with any password
-
-