Package org.wildfly.security.sasl.util
Class AvailableRealmsSaslServerFactory
java.lang.Object
org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
org.wildfly.security.sasl.util.AvailableRealmsSaslServerFactory
- All Implemented Interfaces:
SaslServerFactory
A
SaslServerFactory which sets the server's available realms using the legacy WildFlySasl.REALM_LIST
property, if specified.- Author:
- Farah Juma
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance.AvailableRealmsSaslServerFactory(SaslServerFactory delegate, int escapeCharacter, int... 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 int DEFAULT_DELIMITER- See Also:
-
DEFAULT_ESCAPE_CHARACTER
public static final int DEFAULT_ESCAPE_CHARACTER- See Also:
-
-
Constructor Details
-
AvailableRealmsSaslServerFactory
Construct a new instance. The delimiter used to separate the realm names in the list of realms is assumed to be 32. The escape character is assumed to be 92.- Parameters:
delegate- the delegateSaslServerFactory
-
AvailableRealmsSaslServerFactory
public AvailableRealmsSaslServerFactory(SaslServerFactory delegate, int escapeCharacter, int... delims) Construct a new instance.- Parameters:
delegate- the delegateSaslServerFactoryescapeCharacter- the escape characterdelims- the delimiters that separate the realm names in 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
-