Package com.netscape.cmsutil.password
Interface IPasswordStore
-
- All Known Implementing Classes:
NuxwdogPasswordStore
,PlainPasswordFile
public interface IPasswordStore
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
commit()
static IPasswordStore
create(PasswordStoreConfig psc)
Construct a password store.java.lang.String
getPassword(java.lang.String tag, int iteration)
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
-
create
static IPasswordStore create(PasswordStoreConfig psc) throws java.lang.Exception
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.Exception
-
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)
-
-