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 ID 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 IDTokenIssueEventListener extends Lifecycle, EventListener { 019 020 021 /** 022 * This method is called when an ID token is issued. 023 * 024 * @param event The ID token issue event. 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 idTokenIssued(final IDTokenIssueEvent event, final EventContext eventContext); 030}