Package org.wildfly.security.sasl.gs2
Class Gs2SaslClientFactory
- java.lang.Object
-
- org.wildfly.security.sasl.gs2.Gs2SaslClientFactory
-
- All Implemented Interfaces:
SaslClientFactory
@MetaInfServices(javax.security.sasl.SaslClientFactory.class) public final class Gs2SaslClientFactory extends Object implements SaslClientFactory
SaslClientFactory 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 Gs2SaslClientFactory()
Construct a new instance with the default GSS manager.Gs2SaslClientFactory(GSSManager gssManager)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaslClient
createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
String[]
getMechanismNames(Map<String,?> props)
-
-
-
Field Detail
-
gssManager
private final GSSManager gssManager
-
-
Constructor Detail
-
Gs2SaslClientFactory
public Gs2SaslClientFactory(GSSManager gssManager)
Construct a new instance.- Parameters:
gssManager
- the GSS manager to use
-
Gs2SaslClientFactory
public Gs2SaslClientFactory()
Construct a new instance with the default GSS manager.
-
-
Method Detail
-
createSaslClient
public SaslClient createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
- Specified by:
createSaslClient
in interfaceSaslClientFactory
- Throws:
SaslException
-
getMechanismNames
public String[] getMechanismNames(Map<String,?> props)
- Specified by:
getMechanismNames
in interfaceSaslClientFactory
-
-