Package com.sun.enterprise.security
Class LoginContext
java.lang.Object
com.sun.enterprise.security.LoginContext
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 Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
handler
-
-
Constructor Details
-
LoginContext
public LoginContext()Creates the LoginContext with the defauly callback handler
-
-
Method Details
-
login
Login method to login username and password- Throws:
LoginException
-
login
This method has been provided to satisfy the CTS Porting Package requirement for logging in a certificate- Throws:
LoginException
-