Class LocalUserClient
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractSaslParticipant
-
- org.wildfly.security.sasl.util.AbstractSaslClient
-
- org.wildfly.security.sasl.localuser.LocalUserClient
-
- All Implemented Interfaces:
SaslClient
,SaslWrapper
public final class LocalUserClient extends AbstractSaslClient
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private static int
CHALLENGE_RESPONSE_STATE
private static int
INITIAL_CHALLENGE_STATE
static String
LEGACY_QUIET_AUTH
static String
QUIET_AUTH
private boolean
quietAuth
private static byte
UTF8NUL
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
COMPLETE_STATE, FAILED_STATE, NO_BYTES
-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description LocalUserClient(String protocol, String serverName, Map<String,?> props, CallbackHandler callbackHandler, String authorizationId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
evaluateMessage(int state, byte[] message)
void
init()
private static void
safeClose(Closeable c)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslClient
evaluateChallenge, getAuthorizationId, hasInitialResponse
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
assertComplete, dispose, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getNegotiatedProperty, getProtocol, getServerName, getStringProperty, getWrapper, handleCallbacks, isComplete, negotiationComplete, setNegotiationState, setWrapper, tryHandleCallbacks, unwrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.sasl.SaslClient
dispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
-
-
-
-
Field Detail
-
QUIET_AUTH
public static final String QUIET_AUTH
- See Also:
- Constant Field Values
-
LEGACY_QUIET_AUTH
public static final String LEGACY_QUIET_AUTH
- See Also:
- Constant Field Values
-
INITIAL_CHALLENGE_STATE
private static final int INITIAL_CHALLENGE_STATE
- See Also:
- Constant Field Values
-
CHALLENGE_RESPONSE_STATE
private static final int CHALLENGE_RESPONSE_STATE
- See Also:
- Constant Field Values
-
quietAuth
private final boolean quietAuth
-
UTF8NUL
private static final byte UTF8NUL
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
- Overrides:
init
in classAbstractSaslParticipant
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] message) throws SaslException
- Specified by:
evaluateMessage
in classAbstractSaslParticipant
- Throws:
SaslException
-
safeClose
private static void safeClose(Closeable c)
-
-