org.springframework.http.client.support

Class BasicAuthorizationInterceptor

  • java.lang.Object
    • org.springframework.http.client.support.BasicAuthorizationInterceptor
    • Constructor Summary

      Constructors 
      Constructor and Description
      BasicAuthorizationInterceptor(java.lang.String username, java.lang.String password)
      Create a new interceptor which adds a BASIC authorization header for the given username and password.
    • Constructor Detail

      • BasicAuthorizationInterceptor

        public BasicAuthorizationInterceptor(@Nullable
                                             java.lang.String username,
                                             @Nullable
                                             java.lang.String password)
        Create a new interceptor which adds a BASIC authorization header for the given username and password.
        Parameters:
        username - the username to use
        password - the password to use