public class CallbackHandlerRegistry extends Object
DynamicSaslRegistrar
.
The callback configuration should be specified in a properties file, refered to by the System property "amp.callbackhandler.properties". The format of the properties file is:
CallbackHanlder.n.mechanism=fully.qualified.class.name where n is an ordinal
Where 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.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_RESOURCE_NAME
The default name of the callback handler properties resource.
|
Modifier and Type | Method and Description |
---|---|
AMQCallbackHandler |
createCallbackHandler(String mechanism) |
static CallbackHandlerRegistry |
getInstance()
Gets the singleton instance of this registry.
|
Collection<String> |
getMechanisms()
Gets collections of supported SASL mechanism names, ordered by preference
|
boolean |
isUserPassRequired(String selectedMech) |
String |
selectMechanism(String peerMechanismList)
Selects a SASL mechanism that is mutually available to both parties.
|
String |
selectMechanism(String peerMechanismList,
String restrictionList)
Selects a SASL mechanism that is mutually available to both parties.
|
public static final String DEFAULT_RESOURCE_NAME
public static CallbackHandlerRegistry getInstance()
public AMQCallbackHandler createCallbackHandler(String mechanism)
public Collection<String> getMechanisms()
public String selectMechanism(String peerMechanismList)
peerMechanismList
- space separated list of mechanismspublic String selectMechanism(String peerMechanismList, String restrictionList)
peerMechanismList
- space separated list of mechanismsrestrictionList
- space separated list of mechanismspublic boolean isUserPassRequired(String selectedMech)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.