public static class HttpBasicAuthenticationSecurityConfiguration.SecurityAwareClientHttpRequestInterceptor
extends java.lang.Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
Constructor and Description |
---|
SecurityAwareClientHttpRequestInterceptor(org.springframework.core.env.Environment environment) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getPassword() |
protected java.lang.String |
getUsername() |
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution) |
protected boolean |
isAuthenticationEnabled() |
public SecurityAwareClientHttpRequestInterceptor(org.springframework.core.env.Environment environment)
protected boolean isAuthenticationEnabled()
protected java.lang.String getUsername()
protected java.lang.String getPassword()
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws java.io.IOException
intercept
in interface org.springframework.http.client.ClientHttpRequestInterceptor
java.io.IOException