|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.plugin.idipwsync.IDIPasswordStore
public class IDIPasswordStore
IDIPasswordStore is the class provides function to access LDAP
servers for the purpose of updating a specified server with userid and password information.
A properties file is read in when the object is constructed. Information in the
properties file specifies the credentials for access to the server as well as other
tailorable configuration information. This information includes location of keystore files for ssl access
and asymetric encryption using RSA of the password data (see the IDIPasswordCrypto class for decryption).
The ssl connection processing assumes that the client keystore file which contains both client's certificate
and servers signer certification.
A simple usage would be as follows:
When stowPassword(uid,userfullname,password) is invoked,
the ibm-diPerson object defined in the LDAP DIT
is modified to have the specified password.
If the ibm-diPerson object for the specified uid does not exist,
a new one is created.
| Constructor Summary | |
|---|---|
IDIPasswordStore()
Construct and initialize an IDIPasswordStore object. |
|
| Method Summary | |
|---|---|
boolean |
addPasswordValues(String uid,
Vector newPasswords)
addPasswordValues: adds the password values specified, for specified uid. |
boolean |
deletePasswordValues(String uid,
Vector newPasswords)
deletePasswordValues: removes the password values specified, for specified uid. |
void |
finalize()
finalize: nullify properties |
static void |
main(String[] argv)
Use this main to test functionality. |
boolean |
readyToSync()
readyToSync: attempt initctx to see if LDAP server is available |
boolean |
stowPassword(String uid,
String newPassword)
stowPassword: Changes the password if the user id exists. |
boolean |
stowPassword(String uid,
String newPassword,
String extendedData)
stowPassword: Changes the password if the user id exists. |
boolean |
stowPassword(String uid,
Vector newPasswords)
stowPassword: Changes the password if the user id exists. |
String |
toString()
String value of important object data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IDIPasswordStore()
throws IOException,
IDIPasswordStoreMissingPropertyException
IOException - Thrown when attempting to load properties file
IDIPasswordStoreMissingPropertyException - Thrown when attempting to load a required property| Method Detail |
|---|
public void finalize()
finalize in class Object
public boolean addPasswordValues(String uid,
Vector newPasswords)
uid - A String representing the stored uid, must have lenth > 0,
eg. bcampbell.newPasswords - A vector representing stored, decoded passwords, vector must have
length > 0, null entries are not stored.
public boolean deletePasswordValues(String uid,
Vector newPasswords)
uid - A String representing the stored uid, must have lenth > 0,
eg. bcampbellnewPasswords - A vector representing decoded passwords to be removed, must have
length > 0, null entries are not processed.
public boolean readyToSync()
public boolean stowPassword(String uid,
String newPassword)
uid - A String representing the stored uid, must have lenth > 0,
eg. bcampbellnewPassword - A String representing decoded password. Null entries
not stored.
public boolean stowPassword(String uid,
Vector newPasswords)
uid - A String representing the stored uid, must have lenth > 0,
eg. bcampbellnewPasswords - A vector representing stored, decoded password, vector
must have length > 0, null entries will not be stored.
public boolean stowPassword(String uid,
String newPassword,
String extendedData)
uid - a String representing the stored uid, must have lenth > 0, eg. bcampbellnewPassword - a String representing stored, decoded password, must have length > 0, eg. secret, null entries not storedextendedData - a String representing extra data (eg.the username as displayed by Windows NT, eg. Bob Campbell), null entries not stored
public String toString()
toString in class Objectpublic static void main(String[] argv)
argv -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||