public class JBossAuthConfigFactory extends AuthConfigFactory
AuthConfigFactory.RegistrationContext
DEFAULT_FACTORY_SECURITY_PROPERTY
Constructor and Description |
---|
JBossAuthConfigFactory()
Creates an instance of
JBossAuthConfigFactory . |
Modifier and Type | Method and Description |
---|---|
String[] |
detachListener(RegistrationListener listener,
String layer,
String appContext)
Disassociate the listener from all the provider registrations whose layer and
appContext values are matched by the corresponding arguments to this method.
|
AuthConfigProvider |
getConfigProvider(String layer,
String appContext,
RegistrationListener listener)
Get a registered AuthConfigProvider from the factory.
|
AuthConfigFactory.RegistrationContext |
getRegistrationContext(String registrationID) |
String[] |
getRegistrationIDs(AuthConfigProvider provider) |
void |
refresh() |
String |
registerConfigProvider(AuthConfigProvider provider,
String layer,
String appContext,
String description) |
String |
registerConfigProvider(String className,
Map properties,
String layer,
String appContext,
String description) |
boolean |
removeRegistration(String registrationID) |
getFactory, setFactory
public JBossAuthConfigFactory()
Creates an instance of JBossAuthConfigFactory
.
public String[] detachListener(RegistrationListener listener, String layer, String appContext)
AuthConfigFactory
detachListener
in class AuthConfigFactory
listener
- the RegistrationListener to be detached.layer
- a String identifying the message layer or null.appContext
- a String value identifying the application contex or null.public AuthConfigProvider getConfigProvider(String layer, String appContext, RegistrationListener listener)
AuthConfigFactory
getConfigProvider
in class AuthConfigFactory
layer
- a String identifying the message layer for which the registered
AuthConfigProvider is to be returned. This argument may be null.appContext
- a String that identifys the application messaging context for
which the registered AuthConfigProvider is to be returned. This
argument may be null.listener
- the RegistrationListener whose notify method is to be invoked
if the corresponding registration is unregistered or replaced. The
value of this argument may be null.All factories shall employ the following precedence rules to select the registered AuthConfigProvider that matches the layer and appContext arguments:
public AuthConfigFactory.RegistrationContext getRegistrationContext(String registrationID)
getRegistrationContext
in class AuthConfigFactory
public String[] getRegistrationIDs(AuthConfigProvider provider)
getRegistrationIDs
in class AuthConfigFactory
public void refresh()
refresh
in class AuthConfigFactory
public String registerConfigProvider(String className, Map properties, String layer, String appContext, String description)
registerConfigProvider
in class AuthConfigFactory
public String registerConfigProvider(AuthConfigProvider provider, String layer, String appContext, String description)
registerConfigProvider
in class AuthConfigFactory
public boolean removeRegistration(String registrationID)
removeRegistration
in class AuthConfigFactory
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.