UserID (Java™)
The UserID class represents the Notes ID file or a Notes ID when it resides within the Domino IDVault. This object is primarily used to obtain the names of the private encryption keys which are available for use within the UserID object.
Syntax
public class UserID extends
Base
Properties
username - String. Read only. User name of this User ID.
Methods
Example
The following example gets a UserID from IDVault:
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
IDVault id = session.getIDVault();
UserID ui = id.getUserID("test vault1/IBM", "12345", "TEST/IBM");
String un = ui.getUserName();
Vector keys = ui.getEncryptionKeys();
if (keys != null)
{
for (int i=0;i<keys.size();i++)
System.out.println("keys is " + keys.get(i));
}
} catch(Exception e) {
e.printStackTrace();
}
}
}