Class MCSPAuthenticator.Builder

  • Enclosing class:
    MCSPAuthenticator

    public static class MCSPAuthenticator.Builder
    extends java.lang.Object
    This Builder class is used to construct MCSPAuthenticator instances.
    • Constructor Detail

      • Builder

        public Builder()
        Constructs an empty Builder.
    • Method Detail

      • build

        public MCSPAuthenticator build()
        Constructs a new instance of MCSPAuthenticator from the builder's configuration.
        Returns:
        the MCSPAuthenticator instance
      • apikey

        public MCSPAuthenticator.Builder apikey​(java.lang.String apikey)
        Sets the apikey property.
        Parameters:
        apikey - the apikey to use when retrieving an access token
        Returns:
        the Builder
      • url

        public MCSPAuthenticator.Builder url​(java.lang.String url)
        Sets the url property.
        Parameters:
        url - the base url to use with the MCSP token service
        Returns:
        the Builder
      • disableSSLVerification

        public MCSPAuthenticator.Builder disableSSLVerification​(boolean disableSSLVerification)
        Sets the disableSSLVerification property.
        Parameters:
        disableSSLVerification - a boolean flag indicating whether or not SSL verification should be disabled when interacting with the MCSP token service
        Returns:
        the Builder
      • headers

        public MCSPAuthenticator.Builder headers​(java.util.Map<java.lang.String,​java.lang.String> headers)
        Sets the headers property.
        Parameters:
        headers - the set of custom headers to include in requests sent to the MCSP token service
        Returns:
        the Builder
      • proxy

        public MCSPAuthenticator.Builder proxy​(java.net.Proxy proxy)
        Sets the proxy property.
        Parameters:
        proxy - the java.net.Proxy instance to be used when interacting with the MCSP token server
        Returns:
        the Builder
      • proxyAuthenticator

        public MCSPAuthenticator.Builder proxyAuthenticator​(okhttp3.Authenticator proxyAuthenticator)
        Sets the proxyAuthenticator property.
        Parameters:
        proxyAuthenticator - the okhttp3.Authenticator instance to be used with the proxy when interacting with the MCSP token service
        Returns:
        the Builder