com.atlassian.confluence.util.http.httpclient
Class TrustedTokenAuthenticator

java.lang.Object
  extended by com.atlassian.confluence.util.http.Authenticator
      extended by com.atlassian.confluence.util.http.httpclient.HttpClientAuthenticator
          extended by com.atlassian.confluence.util.http.httpclient.TrustedTokenAuthenticator
All Implemented Interfaces:
Serializable

public class TrustedTokenAuthenticator
extends HttpClientAuthenticator

Authenticator that attaches a token from a TrustedTokenFactory to a HTTP request and allows for status reporting on an executed request

See Also:
Serialized Form

Nested Class Summary
static class TrustedTokenAuthenticator.TrustedConnectionStatus
          Deprecated. As of Confluence 2.10, use TrustedConnectionStatus
 
Field Summary
 
Fields inherited from class com.atlassian.confluence.util.http.Authenticator
SIMPLE_PROPERTIES
 
Constructor Summary
TrustedTokenAuthenticator(TrustedTokenFactory trustedTokenFactory)
           
TrustedTokenAuthenticator(TrustedTokenFactory trustedTokenFactory, TrustedConnectionStatusBuilder trustedConnectionStatusBuilder)
           
 
Method Summary
 TrustedTokenAuthenticator.TrustedConnectionStatus getTrustedConnectionStatus(HttpMethod httpMethod)
          Deprecated. As of Confluence 2.10, use DefaultTrustedConnectionStatusBuilder.getTrustedConnectionStatus(HttpResponse)
 HttpMethod makeMethod(HttpClient client, String url)
           
 
Methods inherited from class com.atlassian.confluence.util.http.httpclient.HttpClientAuthenticator
preprocess
 
Methods inherited from class com.atlassian.confluence.util.http.Authenticator
getProperty, getPropertyNames, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustedTokenAuthenticator

public TrustedTokenAuthenticator(TrustedTokenFactory trustedTokenFactory)

TrustedTokenAuthenticator

public TrustedTokenAuthenticator(TrustedTokenFactory trustedTokenFactory,
                                 TrustedConnectionStatusBuilder trustedConnectionStatusBuilder)
Method Detail

makeMethod

public HttpMethod makeMethod(HttpClient client,
                             String url)
Overrides:
makeMethod in class HttpClientAuthenticator

getTrustedConnectionStatus

@Deprecated
public TrustedTokenAuthenticator.TrustedConnectionStatus getTrustedConnectionStatus(HttpMethod httpMethod)
Deprecated. As of Confluence 2.10, use DefaultTrustedConnectionStatusBuilder.getTrustedConnectionStatus(HttpResponse)

Return the status of a trusted application response

Parameters:
httpMethod - executed HttpClient method
Returns:
trusted connection status or null if the request was not a trusted application request


Confluence is developed by Atlassian.