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
FieldsFields inherited from class org.apache.http.impl.auth.AuthSchemeBase
challengeState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.Headerauthenticate(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, processChallengeMethods inherited from class org.apache.http.impl.auth.RFC2617Scheme
getCredentialsCharset, getParameter, getParameters, getRealm, parseChallengeMethods 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:
getSchemeNamein interfaceorg.apache.http.auth.AuthScheme- Overrides:
getSchemeNamein 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:
authenticatein interfaceorg.apache.http.auth.ContextAwareAuthScheme- Overrides:
authenticatein classorg.apache.http.impl.auth.BasicScheme- Throws:
org.apache.http.auth.AuthenticationException
-
toString
- Overrides:
toStringin classorg.apache.http.impl.auth.BasicScheme
-