Create an Authenticated Session using Domain User
Create an NAESession
object and pass a valid NAE username and password as parameters as shown here:
NAESession session = NAESession.getSession ("Domain||Username",
"password1".toCharArray());
If a user is created within a domain, use the following syntax to create NAE session:
NAESession session = NAESession.getSession ("Domain|Domain||Username", "password1".toCharArray());