Search in sources :

Example 6 with SessionEvent

use of org.gluu.oxauth.service.external.session.SessionEvent in project oxAuth by GluuFederation.

the class ExpirationNotificatorTimer method remove.

public boolean remove(SessionId sessionId) {
    try {
        persistenceEntryManager.remove(sessionId.getDn());
        externalApplicationSessionService.externalEvent(new SessionEvent(SessionEventType.GONE, sessionId));
        return true;
    } catch (Exception e) {
        log.error(e.getMessage(), e);
        return false;
    }
}
Also used : SessionEvent(org.gluu.oxauth.service.external.session.SessionEvent)

Aggregations

SessionEvent (org.gluu.oxauth.service.external.session.SessionEvent)6 InvalidSessionStateException (org.gluu.oxauth.model.exception.InvalidSessionStateException)3 LDAPException (com.unboundid.ldap.sdk.LDAPException)2 EntryPersistenceException (org.gluu.persist.exception.EntryPersistenceException)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 URISyntaxException (java.net.URISyntaxException)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 NoSuchProviderException (java.security.NoSuchProviderException)1 Entry (java.util.Map.Entry)1 SessionId (org.gluu.oxauth.model.common.SessionId)1 User (org.gluu.oxauth.model.common.User)1 AcrChangedException (org.gluu.oxauth.model.exception.AcrChangedException)1 JSONException (org.json.JSONException)1