001package com.nimbusds.openid.connect.provider.spi.events;
002
003
004import com.nimbusds.openid.connect.provider.spi.InvocationContext;
005import com.nimbusds.openid.connect.provider.spi.crypto.JWTSigner;
006import com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation;
007
008
009/**
010 * Event context.
011 */
012public interface EventContext extends InvocationContext {
013        
014        
015        /**
016         * Returns the registered information for the client associated with
017         * the event.
018         *
019         * @return The registered client information.
020         */
021        OIDCClientInformation getOIDCClientInformation();
022        
023        
024        /**
025         * Returns an interface for signing JSON Web Tokens (JWT). May be used
026         * to sign security event tokens (SET) produced by the event listener.
027         *
028         * @return The JWT signer.
029         */
030        JWTSigner getJWTSigner();
031}