Class ProfileProxyAuthenticator
- java.lang.Object
-
- org.apache.synapse.transport.http.conn.ProfileProxyAuthenticator
-
- All Implemented Interfaces:
ProxyAuthenticator
public class ProfileProxyAuthenticator extends Object implements ProxyAuthenticator
ProfileProxyAuthenticator will be initialized when proxy profile is configured
-
-
Constructor Summary
Constructors Constructor Description ProfileProxyAuthenticator(ProxyConfig proxyConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthenticatePreemptively(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)this will add authentication header to the request
-
-
-
Constructor Detail
-
ProfileProxyAuthenticator
public ProfileProxyAuthenticator(ProxyConfig proxyConfig) throws org.apache.http.auth.MalformedChallengeException
- Throws:
org.apache.http.auth.MalformedChallengeException
-
-
Method Detail
-
authenticatePreemptively
public void authenticatePreemptively(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.AuthenticationExceptionthis will add authentication header to the request- Specified by:
authenticatePreemptivelyin interfaceProxyAuthenticator- Parameters:
request- outgoing http requestcontext- http context- Throws:
org.apache.http.auth.AuthenticationException
-
-