Class AuthenticationContextSaslClientFactory
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
-
- org.wildfly.security.sasl.auth.util.AuthenticationContextSaslClientFactory
-
- All Implemented Interfaces:
SaslClientFactory
public final class AuthenticationContextSaslClientFactory extends AbstractDelegatingSaslClientFactory
A delegatingSaslClientFactory
which establishes a specificAuthenticationContext
for the duration of the authentication process.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private AuthenticationContext
context
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegate
-
-
Constructor Summary
Constructors Constructor Description AuthenticationContextSaslClientFactory(SaslClientFactory delegate)
Construct a new instance.AuthenticationContextSaslClientFactory(SaslClientFactory delegate, AuthenticationContext context)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
calculateHashCode()
Perform the calculation of the hash code of this factory.SaslClient
createSaslClient(String[] mechanisms, String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh)
boolean
equals(Object other)
boolean
equals(AuthenticationContextSaslClientFactory other)
boolean
equals(AbstractDelegatingSaslClientFactory other)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractDelegatingSaslClientFactory
delegatesThrough, getMechanismNames, hashCode, toString
-
-
-
-
Field Detail
-
context
private final AuthenticationContext context
-
-
Constructor Detail
-
AuthenticationContextSaslClientFactory
public AuthenticationContextSaslClientFactory(SaslClientFactory delegate)
Construct a new instance.- Parameters:
delegate
- the delegate SASL client factory
-
AuthenticationContextSaslClientFactory
public AuthenticationContextSaslClientFactory(SaslClientFactory delegate, AuthenticationContext context)
Construct a new instance.- Parameters:
delegate
- the delegate SASL client factorycontext
- the authentication context to use
-
-
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
- Overrides:
createSaslClient
in classAbstractDelegatingSaslClientFactory
- Throws:
SaslException
-
equals
public boolean equals(Object other)
- Overrides:
equals
in classAbstractDelegatingSaslClientFactory
-
equals
public boolean equals(AbstractDelegatingSaslClientFactory other)
- Overrides:
equals
in classAbstractDelegatingSaslClientFactory
-
equals
public boolean equals(AuthenticationContextSaslClientFactory other)
-
calculateHashCode
protected int calculateHashCode()
Description copied from class:AbstractDelegatingSaslClientFactory
Perform the calculation of the hash code of this factory.- Overrides:
calculateHashCode
in classAbstractDelegatingSaslClientFactory
- Returns:
- the calculated hash code
-
-