Class CookieProcessingTargetAuthenticationStrategy
- java.lang.Object
-
- org.apache.http.impl.client.TargetAuthenticationStrategy
-
- microsoft.exchange.webservices.data.core.CookieProcessingTargetAuthenticationStrategy
-
- All Implemented Interfaces:
org.apache.http.client.AuthenticationStrategy
public class CookieProcessingTargetAuthenticationStrategy extends org.apache.http.impl.client.TargetAuthenticationStrategy
TargetAuthenticationStrategy that also processes the cookies in HTTP 401 response. While not fully according to the RFC's, this is often necessary to ensure good load balancing behaviour (e.g., TMG server requires it for authentication, where it sends a HTTP 401 with a new Cookie after 5 minutes of inactivity)
-
-
Constructor Summary
Constructors Constructor Description CookieProcessingTargetAuthenticationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthFailed(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2)voidauthSucceeded(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2)Map<String,org.apache.http.Header>getChallenges(org.apache.http.HttpHost authhost, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)booleanisAuthenticationRequested(org.apache.http.HttpHost arg0, org.apache.http.HttpResponse arg1, org.apache.http.protocol.HttpContext arg2)protected booleanisCachable(org.apache.http.auth.AuthScheme arg0)Queue<org.apache.http.auth.AuthOption>select(Map<String,org.apache.http.Header> arg0, org.apache.http.HttpHost arg1, org.apache.http.HttpResponse arg2, org.apache.http.protocol.HttpContext arg3)
-
-
-
Constructor Detail
-
CookieProcessingTargetAuthenticationStrategy
public CookieProcessingTargetAuthenticationStrategy()
-
-
Method Detail
-
getChallenges
public Map<String,org.apache.http.Header> getChallenges(org.apache.http.HttpHost authhost, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.MalformedChallengeException
- Specified by:
getChallengesin interfaceorg.apache.http.client.AuthenticationStrategy- Throws:
org.apache.http.auth.MalformedChallengeException
-
isAuthenticationRequested
public boolean isAuthenticationRequested(org.apache.http.HttpHost arg0, org.apache.http.HttpResponse arg1, org.apache.http.protocol.HttpContext arg2)- Specified by:
isAuthenticationRequestedin interfaceorg.apache.http.client.AuthenticationStrategy
-
select
public Queue<org.apache.http.auth.AuthOption> select(Map<String,org.apache.http.Header> arg0, org.apache.http.HttpHost arg1, org.apache.http.HttpResponse arg2, org.apache.http.protocol.HttpContext arg3) throws org.apache.http.auth.MalformedChallengeException
- Specified by:
selectin interfaceorg.apache.http.client.AuthenticationStrategy- Throws:
org.apache.http.auth.MalformedChallengeException
-
authSucceeded
public void authSucceeded(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2)- Specified by:
authSucceededin interfaceorg.apache.http.client.AuthenticationStrategy
-
isCachable
protected boolean isCachable(org.apache.http.auth.AuthScheme arg0)
-
authFailed
public void authFailed(org.apache.http.HttpHost arg0, org.apache.http.auth.AuthScheme arg1, org.apache.http.protocol.HttpContext arg2)- Specified by:
authFailedin interfaceorg.apache.http.client.AuthenticationStrategy
-
-