Package org.sonatype.security.events

Examples of org.sonatype.security.events.AuthenticationEvent


  @Override
  public Subject login(Subject subject, final AuthenticationToken token) throws AuthenticationException {
    try {
      subject = super.login(subject, token);
      UserIdMdcHelper.set(subject);
      eventBus.get().post(new AuthenticationEvent(token.getPrincipal().toString(), true));
      return subject;
    }
    catch (AuthenticationException e) {
      eventBus.get().post(new AuthenticationEvent(token.getPrincipal().toString(), false));
      throw e;
    }
  }
View Full Code Here

TOP

Related Classes of org.sonatype.security.events.AuthenticationEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.