Class OAuthAuthenticationScheme
java.lang.Object
org.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.RFC2617Scheme
org.apache.http.impl.auth.BasicScheme
org.frankframework.http.authentication.OAuthAuthenticationScheme
- All Implemented Interfaces:
Serializable
,org.apache.http.auth.AuthScheme
,org.apache.http.auth.ContextAwareAuthScheme
public class OAuthAuthenticationScheme
extends org.apache.http.impl.auth.BasicScheme
HttpClient AuthScheme that uses OAuthAccessTokenManager to obtain an access token (via Client Credentials flow).
- Author:
- Gerrit van Brakel
- See Also:
-
Field Summary
Fields inherited from class org.apache.http.impl.auth.AuthSchemeBase
challengeState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.Header
authenticate
(org.apache.http.auth.Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) toString()
Methods inherited from class org.apache.http.impl.auth.BasicScheme
authenticate, authenticate, isComplete, isConnectionBased, processChallenge
Methods inherited from class org.apache.http.impl.auth.RFC2617Scheme
getCredentialsCharset, getParameter, getParameters, getRealm, parseChallenge
Methods inherited from class org.apache.http.impl.auth.AuthSchemeBase
getChallengeState, isProxy
-
Field Details
-
SCHEME_NAME_AUTO
- See Also:
-
SCHEME_NAME_FORCE_REFRESH
- See Also:
-
-
Constructor Details
-
OAuthAuthenticationScheme
public OAuthAuthenticationScheme() -
OAuthAuthenticationScheme
public OAuthAuthenticationScheme(boolean forceRefresh)
-
-
Method Details
-
getSchemeName
- Specified by:
getSchemeName
in interfaceorg.apache.http.auth.AuthScheme
- Overrides:
getSchemeName
in classorg.apache.http.impl.auth.BasicScheme
-
authenticate
public org.apache.http.Header authenticate(org.apache.http.auth.Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.AuthenticationException - Specified by:
authenticate
in interfaceorg.apache.http.auth.ContextAwareAuthScheme
- Overrides:
authenticate
in classorg.apache.http.impl.auth.BasicScheme
- Throws:
org.apache.http.auth.AuthenticationException
-
toString
- Overrides:
toString
in classorg.apache.http.impl.auth.BasicScheme
-