Package org.wildfly.security.sasl.util
Class LegacyRealmListSaslServerFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
org.wildfly.security.sasl.util.LegacyRealmListSaslServerFactory
- All Implemented Interfaces:
SaslServerFactory
A
SaslServerFactory which uses the AvailableRealmsCallback to populate the legacy
WildFlySasl.REALM_LIST property, if needed by a mechanism.- Author:
- Farah Juma
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final charFields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance.LegacyRealmListSaslServerFactory(SaslServerFactory delegate, char escapeCharacter, int... delims) Construct a new instance.LegacyRealmListSaslServerFactory(SaslServerFactory delegate, char escapeCharacter, String delims) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegatesThrough, getMechanismNames, toString
-
Field Details
-
DEFAULT_DELIMITER
public static final char DEFAULT_DELIMITER- See Also:
-
DEFAULT_ESCAPE_CHARACTER
public static final char DEFAULT_ESCAPE_CHARACTER- See Also:
-
-
Constructor Details
-
LegacyRealmListSaslServerFactory
Construct a new instance. The delimiter that should be used to separate the realm names when populating the list of realms is assumed to be ' '. The escape character is assumed to be '\\'.- Parameters:
delegate- the delegateSaslServerFactory
-
LegacyRealmListSaslServerFactory
public LegacyRealmListSaslServerFactory(SaslServerFactory delegate, char escapeCharacter, String delims) Construct a new instance.- Parameters:
delegate- the delegateSaslServerFactoryescapeCharacter- the escape character to use when populating the list of realmsdelims- the delimiters that should be used to separate the realm names when populating the list of realms
-
LegacyRealmListSaslServerFactory
public LegacyRealmListSaslServerFactory(SaslServerFactory delegate, char escapeCharacter, int... delims) Construct a new instance.- Parameters:
delegate- the delegateSaslServerFactoryescapeCharacter- the escape character to use when populating the list of realmsdelims- the delimiters that should be used to separate the realm names when populating the list of realms
-
-
Method Details
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws SaslException- Specified by:
createSaslServerin interfaceSaslServerFactory- Overrides:
createSaslServerin classAbstractDelegatingSaslServerFactory- Throws:
SaslException
-