public class

TrustedTokenAuthenticator

extends HttpClientAuthenticator
java.lang.Object
   ↳ com.atlassian.confluence.util.http.Authenticator
     ↳ com.atlassian.confluence.util.http.httpclient.HttpClientAuthenticator
       ↳ com.atlassian.confluence.util.http.httpclient.TrustedTokenAuthenticator

Class Overview

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

Summary

Nested Classes
class TrustedTokenAuthenticator.TrustedConnectionStatus This class is deprecated. As of Confluence 2.10, use TrustedConnectionStatus  
[Expand]
Inherited Fields
From class com.atlassian.confluence.util.http.Authenticator
Public Constructors
TrustedTokenAuthenticator(TrustedTokenFactory trustedTokenFactory)
TrustedTokenAuthenticator(TrustedTokenFactory trustedTokenFactory, TrustedConnectionStatusBuilder trustedConnectionStatusBuilder)
Public Methods
TrustedTokenAuthenticator.TrustedConnectionStatus getTrustedConnectionStatus(HttpMethod httpMethod)
This method is deprecated. As of Confluence 2.10, use getTrustedConnectionStatus(HttpResponse)
HttpMethod makeMethod(HttpClient client, String url)
[Expand]
Inherited Methods
From class com.atlassian.confluence.util.http.httpclient.HttpClientAuthenticator
From class com.atlassian.confluence.util.http.Authenticator
From class java.lang.Object

Public Constructors

public TrustedTokenAuthenticator (TrustedTokenFactory trustedTokenFactory)

public TrustedTokenAuthenticator (TrustedTokenFactory trustedTokenFactory, TrustedConnectionStatusBuilder trustedConnectionStatusBuilder)

Public Methods

public TrustedTokenAuthenticator.TrustedConnectionStatus getTrustedConnectionStatus (HttpMethod httpMethod)

This method is deprecated.
As of Confluence 2.10, use 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

public HttpMethod makeMethod (HttpClient client, String url)