Examples: Encrypt (Database - Java)
This is an example for encypting a database.
import lotus.domino.AgentBase;
import lotus.domino.Database;
import lotus.domino.Session;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
Database db = session.getDatabase("", "");
db.openWithFailover("", "encme.nsf");
db.encrypt(Database.DBENCRYPT_STRENGTH_AES256, false);
System.out.println(db.getEncryptionStrength());
} catch(Exception e) {
e.printStackTrace();
}
}
}