use of com.iplanet.dpro.session.SessionListener in project OpenAM by OpenRock.
the class SSOTokenImpl method addSSOTokenListener.
/**
* Adds a sso token listener for the token change events.
*
* @param listener
* A reference to a SSOTokenListener object.
* @throws SSOException if the SSOToken is not VALID or if
* there are errors in adding the sso token listener.
*/
public void addSSOTokenListener(SSOTokenListener listener) throws SSOException {
if (!ldapConnect) {
try {
SessionListener ssoListener = new SSOSessionListener(listener);
session.addSessionListener(ssoListener);
} catch (Exception e) {
SSOProviderImpl.debug.error("Couldn't add listener to the token" + getTokenID().toString());
throw new SSOException(e);
}
}
}
use of com.iplanet.dpro.session.SessionListener in project OpenAM by OpenRock.
the class StatelessSSOToken method addSSOTokenListener.
@Override
public void addSSOTokenListener(SSOTokenListener listener) throws SSOException {
try {
SessionListener ssoListener = new SSOSessionListener(listener);
session.addSessionListener(ssoListener);
} catch (Exception e) {
DEBUG.error("Couldn't add listener to the token {}", session.getID(), e);
throw new SSOException(e);
}
}
Aggregations