Package com.sun.enterprise.security
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 Summary
Fields Modifier and Type Field Description CallbackHandler
handler
-
Constructor Summary
Constructors Constructor Description LoginContext()
Creates the LoginContext with the defauly callback handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
login(String username, byte[] authData)
This method has been provided to satisfy the CTS Porting Package requirement for logging in a certificatevoid
login(String user, String pass)
Login method to login username and password
-
-
-
Field Detail
-
handler
public CallbackHandler handler
-
-
Method Detail
-
login
public void login(String user, String pass) throws LoginException
Login method to login username and password- Throws:
LoginException
-
login
public void login(String username, byte[] authData) throws LoginException
This method has been provided to satisfy the CTS Porting Package requirement for logging in a certificate- Throws:
LoginException
-
-