|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.client.security.CallbackHandlerRegistry
public class CallbackHandlerRegistry
CallbackHandlerRegistry is a registry for call back handlers for user authentication and interaction during user
authentication. It is capable of reading its configuration from a properties file containing call back handler
implementing class names for different SASL mechanism names. Instantiating this registry also has the effect of
configuring and registering the SASL client factory implementations using DynamicSaslRegistrar
.
CallbackHanlder.mechanism=fully.qualified.class.nameWhere mechanism is an IANA-registered mechanism name and the fully qualified class name refers to a class that implements org.apache.qpid.client.security.AMQCallbackHanlder and provides a call back handler for the specified mechanism.
Responsibilities | Collaborations |
---|---|
Parse callback properties. | |
Provide mapping from SASL mechanisms to callback implementations. |
Field Summary | |
---|---|
static String |
DEFAULT_RESOURCE_NAME
The default name of the callback handler properties resource. |
Method Summary | |
---|---|
Class |
getCallbackHandlerClass(String mechanism)
Gets the callback handler class for a given SASL mechanism name. |
static CallbackHandlerRegistry |
getInstance()
Gets the singleton instance of this registry. |
String |
getMechanisms()
Gets a space delimited list of supported SASL mechanisms. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_RESOURCE_NAME
Method Detail |
---|
public static CallbackHandlerRegistry getInstance()
public Class getCallbackHandlerClass(String mechanism)
mechanism
- The SASL mechanism name.
public String getMechanisms()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |