Interface Lifecycle
-
- All Known Subinterfaces:
AccessTokenIssueEventListener,AdvancedClaimsSource,AuthorizationRequestValidator,ClaimsSource,ClientCredentialsGrantHandler,CommonClaimsSource,FinalMetadataValidator,GrantHandler,IDTokenIssueEventListener,JWTGrantHandler,PARValidator,PasswordGrantHandler,RegistrationInterceptor,SAML2GrantHandler,SelfIssuedJWTGrantHandler,SelfIssuedSAML2GrantHandler,ThirdPartyJWTGrantHandler,ThirdPartySAML2GrantHandler
public interface Lifecycle
Service Provider Interface (SPI) lifecycle.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidinit(InitContext initContext)Initialises the SPI implementation after it is loaded by the Connect2id Server.default booleanisEnabled()Checks if the SPI implementation is enabled and can handle requests.default voidshutdown()Shuts down the SPI implementation.
-
-
-
Method Detail
-
init
default void init(InitContext initContext) throws Exception
Initialises the SPI implementation after it is loaded by the Connect2id Server.- Parameters:
initContext- The initialisation context. Can be used to configure and setup the SPI implementation. Notnull.- Throws:
Exception- If initialisation failed.
-
isEnabled
default boolean isEnabled()
Checks if the SPI implementation is enabled and can handle requests. This can be controlled by a configuration setting or otherwise.- Returns:
trueif the SPI implementation is enabled, elsefalse.
-
-