Class JaspiAuthConfigProvider
- All Implemented Interfaces:
javax.security.auth.message.config.AuthConfigProvider
A Jetty implementation of the AuthConfigProvider
to allow registration of a ServerAuthModule
directly without having to write a custom AuthConfigProvider
.
If this is being constructed by an AuthConfigFactory
after being passed in as a className, then
you will need to provide the property ServerAuthModule
containing the fully qualified name of
the ServerAuthModule
class you wish to use.
-
Constructor Summary
ConstructorDescriptionJaspiAuthConfigProvider
(String className) JaspiAuthConfigProvider
(String className, Map properties) JaspiAuthConfigProvider
(Map properties, javax.security.auth.message.config.AuthConfigFactory factory) Constructor with signature and implementation that's required by API.JaspiAuthConfigProvider
(javax.security.auth.message.module.ServerAuthModule serverAuthModule) JaspiAuthConfigProvider
(javax.security.auth.message.module.ServerAuthModule serverAuthModule, Map properties) -
Method Summary
Modifier and TypeMethodDescriptionjavax.security.auth.message.config.ClientAuthConfig
getClientAuthConfig
(String layer, String appContext, CallbackHandler handler) javax.security.auth.message.config.ServerAuthConfig
getServerAuthConfig
(String layer, String appContext, CallbackHandler handler) void
refresh()
-
Constructor Details
-
JaspiAuthConfigProvider
public JaspiAuthConfigProvider(Map properties, javax.security.auth.message.config.AuthConfigFactory factory) Constructor with signature and implementation that's required by API.
The property map must contain the
ServerAuthModule
property containing the fully qualified name of theServerAuthModule
class you wish to use. If this constructor is being used for self-registration an optional property ofappContext
can be used specify the appContext value to register the provider.- Parameters:
properties
- A Map of initialization properties.factory
- TheAuthConfigFactory
to register on.
-
JaspiAuthConfigProvider
- Parameters:
className
- The fully qualified name of aServerAuthModule
class.
-
JaspiAuthConfigProvider
- Parameters:
className
- The fully qualified name of aServerAuthModule
class.properties
- A Map of initialization properties.
-
JaspiAuthConfigProvider
public JaspiAuthConfigProvider(javax.security.auth.message.module.ServerAuthModule serverAuthModule) - Parameters:
serverAuthModule
- The instance ofServerAuthModule
to use.
-
JaspiAuthConfigProvider
public JaspiAuthConfigProvider(javax.security.auth.message.module.ServerAuthModule serverAuthModule, Map properties) - Parameters:
serverAuthModule
- The instance ofServerAuthModule
to use.properties
- A Map of initialization properties.
-
-
Method Details
-
getClientAuthConfig
public javax.security.auth.message.config.ClientAuthConfig getClientAuthConfig(String layer, String appContext, CallbackHandler handler) - Specified by:
getClientAuthConfig
in interfacejavax.security.auth.message.config.AuthConfigProvider
-
getServerAuthConfig
public javax.security.auth.message.config.ServerAuthConfig getServerAuthConfig(String layer, String appContext, CallbackHandler handler) - Specified by:
getServerAuthConfig
in interfacejavax.security.auth.message.config.AuthConfigProvider
-
refresh
public void refresh()- Specified by:
refresh
in interfacejavax.security.auth.message.config.AuthConfigProvider
-