use of com.sun.identity.authentication.service.LoginStateCallback in project OpenAM by OpenRock.
the class AMLoginModule method getLoginState.
/*
* Returns the Login State object
* @return com.sun.identity.authentication.service.LoginState
*/
private com.sun.identity.authentication.service.LoginState getLoginState() {
Callback[] callbacks = new Callback[1];
try {
callbacks[0] = new LoginStateCallback();
if (handler == null) {
return null;
}
handler.handle(callbacks);
return ((LoginStateCallback) callbacks[0]).getLoginState();
} catch (Exception e) {
debug.message("Error..", e);
return null;
}
}
Aggregations