org.apache.qpid.client.security
Class DynamicSaslRegistrar
java.lang.Object
org.apache.qpid.client.security.DynamicSaslRegistrar
public class DynamicSaslRegistrar
- extends Object
DynamicSaslRegistrar provides a collection of helper methods for reading a configuration file that contains a mapping
from SASL mechanism names to implementing client factory class names and registering a security provider with the
Java runtime system, that uses the configured client factory implementations.
The sasl configuration should be specified in a properties file, refered to by the System property
"amp.dynamicsaslregistrar.properties". The format of the properties file is:
mechanism=fully.qualified.class.name
Where mechanism is an IANA-registered mechanism name and the fully qualified class name refers to a class that
implements javax.security.sasl.SaslClientFactory and provides the specified mechanism.
CRC Card Responsibilities | Collaborations |
---|
Parse SASL
mechanism properties. |
Create and register security provider for SASL mechanisms. |
Method Summary |
static void |
registerSaslProviders()
Reads the properties file, and creates a dynamic security provider to register the SASL implementations with. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_RESOURCE_NAME
public static final String DEFAULT_RESOURCE_NAME
- The default name of the SASL properties file resource.
- See Also:
- Constant Field Values
DynamicSaslRegistrar
public DynamicSaslRegistrar()
registerSaslProviders
public static void registerSaslProviders()
- Reads the properties file, and creates a dynamic security provider to register the SASL implementations with.
Licensed to the Apache Software Foundation