public final class LoginContext extends Object
// 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| Modifier and Type | Field and Description |
|---|---|
CallbackHandler |
handler |
| Constructor and Description |
|---|
LoginContext()
Creates the LoginContext with the defauly callback handler
|
| Modifier and Type | Method and Description |
|---|---|
void |
login(String username,
byte[] authData)
This method has been provided to satisfy the CTS Porting Package
requirement for logging in a certificate
|
void |
login(String user,
String pass)
Login method to login username and password
|
public CallbackHandler handler
public LoginContext()
public void login(String user, String pass) throws LoginException
LoginExceptionpublic void login(String username, byte[] authData) throws LoginException
LoginExceptionCopyright © 2017. All rights reserved.