Class RetryingOAuth

  • All Implemented Interfaces:
    Authentication, okhttp3.Interceptor

    public class RetryingOAuth
    extends OAuth
    implements okhttp3.Interceptor
    • Constructor Detail

      • RetryingOAuth

        public RetryingOAuth​(okhttp3.OkHttpClient client,
                             org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder tokenRequestBuilder)
      • RetryingOAuth

        public RetryingOAuth​(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder tokenRequestBuilder)
    • Method Detail

      • setFlow

        public void setFlow​(OAuthFlow flow)
      • intercept

        public okhttp3.Response intercept​(okhttp3.Interceptor.Chain chain)
                                   throws IOException
        Specified by:
        intercept in interface okhttp3.Interceptor
        Throws:
        IOException
      • getTokenRequestBuilder

        public org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder getTokenRequestBuilder()
      • setTokenRequestBuilder

        public void setTokenRequestBuilder​(org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder tokenRequestBuilder)
      • applyToParams

        public void applyToParams​(List<Pair> queryParams,
                                  Map<String,​String> headerParams,
                                  Map<String,​String> cookieParams)
        Description copied from interface: Authentication
        Apply authentication settings to header and query params.
        Specified by:
        applyToParams in interface Authentication
        Overrides:
        applyToParams in class OAuth
        Parameters:
        queryParams - List of query parameters
        headerParams - Map of header parameters
        cookieParams - Map of cookie parameters