Package com.evolveum.midpoint.ninja.util
Class BasicAuthenticationInterceptor
- java.lang.Object
-
- com.evolveum.midpoint.ninja.util.BasicAuthenticationInterceptor
-
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public class BasicAuthenticationInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
Created by Viliam Repan (lazyman).
-
-
Constructor Summary
Constructors Constructor Description BasicAuthenticationInterceptor(String username, String password)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
encodeCredentialsForBasicAuth(String username, String password)
org.springframework.http.client.ClientHttpResponse
intercept(org.springframework.http.HttpRequest httpRequest, byte[] bytes, org.springframework.http.client.ClientHttpRequestExecution clientHttpRequestExecution)
-
-
-
Method Detail
-
intercept
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest httpRequest, byte[] bytes, org.springframework.http.client.ClientHttpRequestExecution clientHttpRequestExecution) throws IOException
- Specified by:
intercept
in interfaceorg.springframework.http.client.ClientHttpRequestInterceptor
- Throws:
IOException
-
-