Package org.wildfly.security.sasl.oauth2
Class OAuth2SaslClient
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractSaslParticipant
-
- org.wildfly.security.sasl.util.AbstractSaslClient
-
- org.wildfly.security.sasl.oauth2.OAuth2SaslClient
-
- All Implemented Interfaces:
SaslClient,SaslWrapper
final class OAuth2SaslClient extends AbstractSaslClient
An OAuth2 Sasl Client based on RFC-7628.- Author:
- Pedro Igor
-
-
Field Summary
Fields Modifier and Type Field Description private OAuth2Clientoauth2Clientprivate static intS_FINAL_SERVER_RESPONSEprivate static intS_FIRST_MESSAGE-
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 OAuth2SaslClient(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, String authorizationId, OAuth2Client oauth2Client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose of this participant.protected byte[]evaluateMessage(int state, byte[] challenge)-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslClient
evaluateChallenge, getAuthorizationId, hasInitialResponse
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
assertComplete, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getNegotiatedProperty, getProtocol, getServerName, getStringProperty, getWrapper, handleCallbacks, init, 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
getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
-
-
-
-
Field Detail
-
S_FIRST_MESSAGE
private static final int S_FIRST_MESSAGE
- See Also:
- Constant Field Values
-
S_FINAL_SERVER_RESPONSE
private static final int S_FINAL_SERVER_RESPONSE
- See Also:
- Constant Field Values
-
oauth2Client
private final OAuth2Client oauth2Client
-
-
Constructor Detail
-
OAuth2SaslClient
OAuth2SaslClient(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, String authorizationId, OAuth2Client oauth2Client)
-
-
Method Detail
-
dispose
public void dispose() throws SaslExceptionDescription copied from class:AbstractSaslParticipantDispose of this participant.- Specified by:
disposein interfaceSaslClient- Overrides:
disposein classAbstractSaslParticipant- Throws:
SaslException- if disposal failed
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] challenge) throws SaslException- Specified by:
evaluateMessagein classAbstractSaslParticipant- Throws:
SaslException
-
-