Class OAuthSchemeFactory

  • All Implemented Interfaces:
    org.apache.http.auth.AuthSchemeFactory

    public class OAuthSchemeFactory
    extends Object
    implements org.apache.http.auth.AuthSchemeFactory
    An implementation of the OAuth HTTP authorization scheme. This is somewhat limited: it can only sign a request URL by adding an Authorization header. It can't change the request URL query string, it can't handle OAuth parameters in the URL query and it can't sign parameters from the request body.
    Author:
    Paul Austin, John Kristian
    • Field Detail

      • DEFAULT_REALM

        public static final String DEFAULT_REALM
        The name of an DigestHttpClient param whose value is the realm to send in Authorization headers, if no realm was previously received in a WWW-Authenticate challenge. This is useful for preemptive authorization; that is sending an Authorization header without any need for a challenge.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OAuthSchemeFactory

        public OAuthSchemeFactory()
    • Method Detail

      • newInstance

        public org.apache.http.auth.AuthScheme newInstance​(org.apache.http.params.HttpParams params)
        Specified by:
        newInstance in interface org.apache.http.auth.AuthSchemeFactory