com.atlassian.confluence.util.http.trust
Class DefaultTrustedConnectionStatusBuilder

java.lang.Object
  extended by com.atlassian.confluence.util.http.trust.DefaultTrustedConnectionStatusBuilder
All Implemented Interfaces:
TrustedConnectionStatusBuilder

public class DefaultTrustedConnectionStatusBuilder
extends java.lang.Object
implements TrustedConnectionStatusBuilder

Since:
2.10

Constructor Summary
DefaultTrustedConnectionStatusBuilder()
           
 
Method Summary
 TrustedConnectionStatus getTrustedConnectionStatus(HttpResponse httpResponse)
          Parses the Trusted Applications Authentication headers from the HTTP response provided to the method and builds a TrustedConnectionStatus object with the results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTrustedConnectionStatusBuilder

public DefaultTrustedConnectionStatusBuilder()
Method Detail

getTrustedConnectionStatus

public TrustedConnectionStatus getTrustedConnectionStatus(HttpResponse httpResponse)
Description copied from interface: TrustedConnectionStatusBuilder
Parses the Trusted Applications Authentication headers from the HTTP response provided to the method and builds a TrustedConnectionStatus object with the results. It is assumed that the response corresponds to a request that was made using TAA headers; if you call this on a response to a request where trusted authentication was not attempted, the return value is undefined.

Specified by:
getTrustedConnectionStatus in interface TrustedConnectionStatusBuilder
Parameters:
httpResponse - the HTTP response to extract the trusted connection status from. Must not be null, or an IllegalArgumentException will be thrown.
Returns:
a TrustedConnectionStatus object containing information about the status and any errors that occurred with the trusted connection. Must not return null.


Copyright © 2003-2013 Atlassian. All Rights Reserved.