public final class AvailableRealmsSaslServerFactory extends AbstractDelegatingSaslServerFactory
SaslServerFactory
which sets the server's available realms using the legacy WildFlySasl.REALM_LIST
property, if specified.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DELIMITER |
static int |
DEFAULT_ESCAPE_CHARACTER |
delegate
Constructor and Description |
---|
AvailableRealmsSaslServerFactory(SaslServerFactory delegate)
Construct a new instance.
|
AvailableRealmsSaslServerFactory(SaslServerFactory delegate,
int escapeCharacter,
int... delims)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
SaslServer |
createSaslServer(String mechanism,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh) |
delegatesThrough, getMechanismNames, toString
public static final int DEFAULT_DELIMITER
public static final int DEFAULT_ESCAPE_CHARACTER
public AvailableRealmsSaslServerFactory(SaslServerFactory delegate)
delegate
- the delegate SaslServerFactory
public AvailableRealmsSaslServerFactory(SaslServerFactory delegate, int escapeCharacter, int... delims)
delegate
- the delegate SaslServerFactory
escapeCharacter
- the escape characterdelims
- the delimiters that separate the realm names in the list of realmspublic SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
createSaslServer
in interface SaslServerFactory
createSaslServer
in class AbstractDelegatingSaslServerFactory
SaslException
Copyright © 2020 JBoss by Red Hat. All rights reserved.