001package com.nimbusds.openid.connect.provider.spi.events; 002 003 004import java.util.EventListener; 005 006import net.jcip.annotations.ThreadSafe; 007 008import com.nimbusds.openid.connect.provider.spi.Lifecycle; 009 010 011/** 012 * Service Provider Interface (SPI) for listening to access token issue events. 013 * 014 * <p>Implementations must be thread-safe. Listeners that emit events should 015 * use a separate thread for blocking operations. 016 */ 017@ThreadSafe 018public interface AccessTokenIssueEventListener extends Lifecycle, EventListener { 019 020 021 /** 022 * This method is called when an access token is issued. 023 * 024 * @param event The access token issue event. Not {@code null}. 025 * @param eventContext Provides access to additional parameters about 026 * the event as well as helpers for its 027 * processing. Not {@code null}. 028 */ 029 void accessTokenIssued(final AccessTokenIssueEvent event, final EventContext eventContext); 030}