Interface Lifecycle
- All Known Subinterfaces:
AccessTokenIssueEventListener,AdvancedClaimsSource,AuthorizationRequestValidator,ClaimsSource,ClientAuthenticationInterceptor,ClientCredentialsGrantHandler,CommonClaimsSource,CustomTokenResponseComposer,FinalMetadataValidator,GrantHandler,IdentifierAccessTokenCodec,IDTokenIssueEventListener,JWTGrantHandler,PARValidator,PasswordGrantHandler,PrivateKeyJWTCertificateVerifier,RegistrationInterceptor,SAML2GrantHandler,SelfContainedAccessTokenClaimsCodec,SelfIssuedJWTGrantHandler,SelfIssuedSAML2GrantHandler,ThirdPartyJWTGrantHandler,ThirdPartySAML2GrantHandler,TokenExchangeGrantHandler,TokenIntrospectionResponseComposer
- All Known Implementing Classes:
BaseSelfContainedAccessTokenClaimsCodec,BaseTokenIntrospectionResponseComposer,DefaultTokenIntrospectionResponseComposer
public interface Lifecycle
Service Provider Interface (SPI) lifecycle.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidinit(InitContext initContext) Initialises the SPI implementation after it is loaded by the Connect2id Server.default booleanChecks if the SPI implementation is enabled and can handle requests.default voidshutdown()Shuts down the SPI implementation.
-
Method Details
-
init
Initialises the SPI implementation after it is loaded by the Connect2id Server.- Parameters:
initContext- The initialisation context. Can be used to configure and set up the SPI implementation. Notnull.- Throws:
Exception- If initialisation failed.
-
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.
-
shutdown
Shuts down the SPI implementation. This method is called on Connect2id Server shutdown.- Throws:
Exception- If proper shutdown failed.
-