
com.nimbusds.openid.connect.provider.spi.Lifecycle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of c2id-server-sdk Show documentation
Show all versions of c2id-server-sdk Show documentation
Toolkit for developing Connect2id Server extensions, such as
custom OpenID Connect claims sources and grant handlers.
package com.nimbusds.openid.connect.provider.spi;
/**
* Service Provider Interface (SPI) lifecycle.
*/
public interface Lifecycle {
/**
* Initialises the SPI implementation after it is loaded by the
* Connect2id Server.
*
* @param initContext The initialisation context. Can be used to
* configure and setup the SPI implementation. Not
* {@code null}.
*
* @throws Exception If initialisation failed.
*/
void init(final InitContext initContext)
throws Exception;
/**
* Checks if the SPI implementation is enabled and can handle requests.
* This can be controlled by a configuration setting or otherwise.
*
* @return {@code true} if the SPI implementation is enabled, else
* {@code false}.
*/
boolean isEnabled();
/**
* Shuts down the SPI implementation. This method is called on
* Connect2id Server shutdown.
*
* @throws Exception If proper shutdown failed.
*/
void shutdown()
throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy