Class LoginContext

java.lang.Object
com.sun.enterprise.security.LoginContext

public final class LoginContext extends Object
This class is kept for CTS. Ideally we should move away from it. The login can be done via the following call:
 // Initialize the ORB.
 try {
     LoginContext lc = new LoginContext();
     lc.login("john", "john123");
 } catch (LoginException le) {
     le.printStackTrace();
 }

 
Ideally the login should be done with the system property -Dj2eelogin.name and -Dj2eelogin.password
Author:
Harpreet Singh ([email protected])
  • Field Details

  • Constructor Details

    • LoginContext

      public LoginContext()
      Creates the LoginContext with the defauly callback handler
  • Method Details