Package org.wildfly.security.sasl.util
Class CredentialSaslServerFactory
- java.lang.Object
 - 
- org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
 - 
- org.wildfly.security.sasl.util.CredentialSaslServerFactory
 
 
 
- 
- All Implemented Interfaces:
 SaslServerFactory
public final class CredentialSaslServerFactory extends AbstractDelegatingSaslServerFactory
ASaslServerFactorywhich sets the server's credential.- Author:
 - Farah Juma
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslServerFactory
delegate 
 - 
 
- 
Constructor Summary
Constructors Constructor Description CredentialSaslServerFactory(SaslServerFactory delegate, Credential credential)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 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
CredentialSaslServerFactory
public CredentialSaslServerFactory(SaslServerFactory delegate, Credential credential)
Construct a new instance.- Parameters:
 delegate- the delegate SASL server factorycredential- the server credential to use
 
 - 
 
- 
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
 
 - 
 
 -