Class IamRequestBasedAuthenticator

    • Constructor Detail

      • IamRequestBasedAuthenticator

        public IamRequestBasedAuthenticator()
    • Method Detail

      • setURL

        public void setURL​(java.lang.String url)
        Sets the URL on this Authenticator.
        Parameters:
        url - the URL representing the IAM token server endpoint
      • setClientIdAndSecret

        public void setClientIdAndSecret​(java.lang.String clientId,
                                         java.lang.String clientSecret)
        Sets the clientId and clientSecret on this Authenticator.
        Parameters:
        clientId - the clientId to use in interactions with the token server
        clientSecret - the clientSecret to use in interactions with the token server
      • setScope

        public void setScope​(java.lang.String value)
        Sets the "scope" parameter to use when fetching the bearer token from the IAM token server.
        Parameters:
        value - a space seperated string that makes up the scope parameter.
      • setDisableSSLVerification

        public void setDisableSSLVerification​(boolean disableSSLVerification)
        Sets the disableSSLVerification flag.
        Parameters:
        disableSSLVerification - a flag indicating whether SSL host verification should be disabled
      • setHeaders

        public void setHeaders​(java.util.Map<java.lang.String,​java.lang.String> headers)
        Sets a Map of key/value pairs which will be sent as HTTP headers in any interactions with the token service.
        Parameters:
        headers - the user-supplied headers to be included in token service interactions
      • setProxy

        public void setProxy​(java.net.Proxy proxy)
        Sets a Proxy object on this Authenticator.
        Parameters:
        proxy - the proxy object to be associated with the Client used to interact with the token service.
      • setProxyAuthenticator

        public void setProxyAuthenticator​(okhttp3.Authenticator proxyAuthenticator)
        Sets a proxy authenticator on this Authenticator instance.
        Parameters:
        proxyAuthenticator - the proxy authenticator
      • setClient

        public void setClient​(okhttp3.OkHttpClient client)
        Sets the OkHttpClient instance to be used when interacting with the token service.
        Parameters:
        client - the OkHttpClient instance to use