public class GuiceModule
extends com.google.inject.AbstractModule
Constructor and Description |
---|
GuiceModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
List<AsyncServerAuthModule> |
getAuthModules(ConfigurationResource configurationResource,
com.google.inject.Injector injector)
Provider for the JASPI runtime's auth modules.
|
AsyncServerAuthModule |
getSessionAuthModule(ConfigurationResource configurationResource,
com.google.inject.Injector injector)
Provider for the JASPI runtime's "Session" auth module.
|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected void configure()
configure
in class com.google.inject.AbstractModule
@Provides @Named(value="SessionAuthModule") @Inject public AsyncServerAuthModule getSessionAuthModule(ConfigurationResource configurationResource, com.google.inject.Injector injector) throws ResourceException, ClassNotFoundException
configurationResource
- An instance of the ConfigurationResource
.injector
- The Guice Injector instance.null
if no "Session" auth module configured.ResourceException
- If there is a problem reading the runtime's module configuration.ClassNotFoundException
- If the configured ServerAuthContext
class could not be found.@Provides @Named(value="AuthModules") @Inject public List<AsyncServerAuthModule> getAuthModules(ConfigurationResource configurationResource, com.google.inject.Injector injector) throws ResourceException, ClassNotFoundException
configurationResource
- An instance of the ConfigurationResource
.injector
- The Guice Injector instance.List
of ServerAuthModule
instances.ResourceException
- If there is a problem reading the runtime's module configuration.ClassNotFoundException
- If the configured ServerAuthContext
class could not be found.Copyright © 2025 Open Identity Platform Community. All rights reserved.