Examples: IsTrustedSession property

The following code creates a trusted session, then verifies the session has been created.

Session session = NotesFactory.createTrustedSession();
if (session.isTrustedSession()) {
   System.out.println("Trusted session created"); }
else {
   System.out.println("Not a trusted session"); }