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
public final class AvailableRealmsSaslServerFactory extends AbstractDelegatingSaslServerFactory
ASaslServerFactorywhich sets the server's available realms using the legacyWildFlySasl.REALM_LISTproperty, if specified.- Author:
 - Farah Juma
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_DELIMITERstatic intDEFAULT_ESCAPE_CHARACTER- 
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AvailableRealmsSaslServerFactory(SaslServerFactory delegate)Construct a new instance.AvailableRealmsSaslServerFactory(SaslServerFactory delegate, int escapeCharacter, int... delims)Construct a new instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslServercreateSaslServer(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 Detail
- 
DEFAULT_DELIMITER
public static final int DEFAULT_DELIMITER
- See Also:
 - Constant Field Values
 
 
- 
DEFAULT_ESCAPE_CHARACTER
public static final int DEFAULT_ESCAPE_CHARACTER
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
AvailableRealmsSaslServerFactory
public AvailableRealmsSaslServerFactory(SaslServerFactory delegate)
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 Detail
- 
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
 
 - 
 
 -