Package org.wildfly.security.sasl.gs2
Class Gs2SaslServerFactory
- java.lang.Object
-
- org.wildfly.security.sasl.gs2.Gs2SaslServerFactory
-
- All Implemented Interfaces:
SaslServerFactory
@MetaInfServices(javax.security.sasl.SaslServerFactory.class) public final class Gs2SaslServerFactory extends Object implements SaslServerFactory
SaslServerFactory for the GS2 mechanism family as defined by RFC 5801.- Author:
- Farah Juma
-
-
Field Summary
Fields Modifier and Type Field Description private GSSManager
gssManager
-
Constructor Summary
Constructors Constructor Description Gs2SaslServerFactory()
Construct a new instance with the default GSS manager.Gs2SaslServerFactory(GSSManager gssManager)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslServer
createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
String[]
getMechanismNames(Map<String,?> props)
-
-
-
Field Detail
-
gssManager
private final GSSManager gssManager
-
-
Constructor Detail
-
Gs2SaslServerFactory
public Gs2SaslServerFactory(GSSManager gssManager)
Construct a new instance.- Parameters:
gssManager
- the GSS manager to use
-
Gs2SaslServerFactory
public Gs2SaslServerFactory()
Construct a new instance with the default GSS manager.
-
-
Method Detail
-
createSaslServer
public SaslServer createSaslServer(String mechanism, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslServer
in interfaceSaslServerFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslServerFactory
-
-