Package com.netscape.cmsutil.password
Interface IPasswordStore
-
- All Known Implementing Classes:
NuxwdogPasswordStore
,PlainPasswordFile
public interface IPasswordStore
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
commit()
java.lang.String
getPassword(java.lang.String tag, int iteration)
static IPasswordStore
getPasswordStore(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> kv)
Construct a password store.java.util.Enumeration<java.lang.String>
getTags()
void
init(java.lang.String pwdPath)
java.lang.Object
putPassword(java.lang.String tag, java.lang.String password)
void
setId(java.lang.String id)
-
-
-
Method Detail
-
getPasswordStore
static IPasswordStore getPasswordStore(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> kv) throws java.lang.RuntimeException
Construct a password store. If the process was started by Nuxwdog return a NuxwdogPasswordStore. Otherwise the class name is read from the "passwordClass" key in the map, an instance is constructed, its init() method is called with the value of the "passwordFile" key in the map, and the instance is returned.- Throws:
java.lang.RuntimeException
-
init
void init(java.lang.String pwdPath) throws java.io.IOException
- Throws:
java.io.IOException
-
getPassword
java.lang.String getPassword(java.lang.String tag, int iteration)
-
getTags
java.util.Enumeration<java.lang.String> getTags()
-
putPassword
java.lang.Object putPassword(java.lang.String tag, java.lang.String password)
-
commit
void commit() throws java.io.IOException, java.lang.ClassCastException, java.lang.NullPointerException
- Throws:
java.io.IOException
java.lang.ClassCastException
java.lang.NullPointerException
-
setId
void setId(java.lang.String id)
-
-