public class JBossAuthConfigProvider extends Object implements AuthConfigProvider
Constructor and Description |
---|
JBossAuthConfigProvider(Map<String,Object> props,
AuthConfigFactory factory)
Create a new JBossAuthConfigProvider.
|
Modifier and Type | Method and Description |
---|---|
ClientAuthConfig |
getClientAuthConfig(String layer,
String appContext,
CallbackHandler handler)
Get an instance of ClientAuthConfig from this provider.
|
ServerAuthConfig |
getServerAuthConfig(String layer,
String appContext,
CallbackHandler handler)
Get an instance of ServerAuthConfig from this provider.
|
void |
refresh()
Causes a dynamic configuration provider to update its internal state such that
any resulting change to its state is recognized by authentication context
configuration objects previously created by the provider within the current
process context.
|
public JBossAuthConfigProvider(Map<String,Object> props, AuthConfigFactory factory)
props
- Context Propertiespublic ClientAuthConfig getClientAuthConfig(String layer, String appContext, CallbackHandler handler) throws AuthException
AuthConfigProvider
getClientAuthConfig
in interface AuthConfigProvider
layer
- a String identifying the message layer for the returned
ClientAuthConfig object.appContext
- a String that identifies the messaging context for the
returned ClientAuthConfig object.handler
- a CallbackHandler to be passed to the ClientAuthModules
encapsulated by ClientAuthContext objects derived from the
returned ClientAuthConfig. This parameter may be null, in which
case the implementation may assign a default handler to the
configuration. The authconfigprovider.client.callbackhandler
security property is used to define the fully qualified name of
the default CallbackHandler implementation class.AuthException
- if this factory does not support the assignment of a
default CallbackHandler to the returned ClientAuthConfig.AuthConfigProvider.getClientAuthConfig(String, String, CallbackHandler)
public ServerAuthConfig getServerAuthConfig(String layer, String appContext, CallbackHandler handler) throws AuthException
AuthConfigProvider
getServerAuthConfig
in interface AuthConfigProvider
layer
- a String identifying the message layer for the returned
ServerAuthConfig object.appContext
- a String that identifies the messaging context for the
returned ServerAuthConfig object.handler
- a CallbackHandler to be passed to the ServerAuthModules
encapsulated by ServerAuthContext objects derived from the
returned ServerAuthConfig. This parameter may be null, in which
case the implementation may assign a default handler to the
configuration. The authconfigprovider.client.callbackhandler
security property is used to define the fully qualified name of
the default CallbackHandler implementation class.AuthException
- if this factory does not support the assignment of a
default CallbackHandler to the returned ServerAuthConfig.AuthConfigProvider.getServerAuthConfig(String, String, CallbackHandler)
public void refresh()
AuthConfigProvider
The effect on the authentication context configuration objects should be extended to the authentication context objects obtained from the configuration objects, such that the context objects recognize changes in the state of the configuration object from which they were obtained.
refresh
in interface AuthConfigProvider
AuthConfigProvider.refresh()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.