IDVault (Java™)
The IDVault class is a representation of the secure storage facility for UserIDs that may be configured for Domino by policy. IDs are stored there to allow for easier management by administrators and users. IDs from more than one server may be stored within an IDVault. The IDVault class provides methods to access UserID files, UserID objects, query the presence of an ID in the vault, sycnronise copies of IDs, and reset passwords. The IDVault class can be used to access UserID objects or files. These can be used to accomplish the encryption or decryption of Documents while running on the server.
Syntax
public class IDVault extends
Base
Methods
Example
This code demonstrates how to access the IDVault class from the Session Class:
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
IDVault id = session.getIDVault();
id.getUserIDFile("c:\\1.id", "test vault1/IBM", "12345", "TEST/IBM");
String sn = id.getServerName();
id.syncUserIDFile("c:\\2.id", "test vault1/IBM", "12345", "TEST/IBM");
boolean bVault = id.isIDInVault("test vault1", "TEST/IBM");
if(bVault)
{
id.resetUserPassword( "test vault1/IBM", "67890","TEST/IBM", 0);
}
id.putUserIDFile("c:\\3.id", "test vault2/IBM", "12345", "TEST/IBM");
} catch(Exception e) {
e.printStackTrace();
}
}
} If bVault Then
Call id.resetUserPassword("test vault1/IBM", "67890", "TEST/IBM", 0)
End If
Call id.putIDFile("c:/3.id", "test vault2/IBM", "12345", "TEST/IBM")