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

java.lang.Object
  extended by com.atlassian.confluence.util.http.trust.TrustedConnectionStatus
Direct Known Subclasses:
TrustedTokenAuthenticator.TrustedConnectionStatus

public class TrustedConnectionStatus
extends java.lang.Object

Represents the status of a trusted connection response

Since:
2.10

Field Summary
static TrustedConnectionStatus SUCCESS
           
static TrustedConnectionStatus UNSUPPORTED
           
 
Constructor Summary
TrustedConnectionStatus(boolean userRecognized, boolean appRecognized, boolean trustedConnectionError, java.util.List<java.lang.String> trustedConnectionErrors, boolean trustSupported)
           
 
Method Summary
 java.util.List<java.lang.String> getTrustedConnectionErrors()
          Deprecated. as of confluence 2.10, use getTrustedTransportErrorMessages instead
 java.util.List<com.atlassian.security.auth.trustedapps.TransportErrorMessage> getTrustedTransportErrorMessages()
           
 boolean isAppRecognized()
           
 boolean isTrustedConnectionError()
           
 boolean isTrustSupported()
           
 boolean isUserRecognized()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSUPPORTED

public static final TrustedConnectionStatus UNSUPPORTED

SUCCESS

public static final TrustedConnectionStatus SUCCESS
Constructor Detail

TrustedConnectionStatus

public TrustedConnectionStatus(boolean userRecognized,
                               boolean appRecognized,
                               boolean trustedConnectionError,
                               java.util.List<java.lang.String> trustedConnectionErrors,
                               boolean trustSupported)
Method Detail

isUserRecognized

public boolean isUserRecognized()
Returns:
true if the user was recognised by the server

isAppRecognized

public boolean isAppRecognized()
Returns:
true if the requesting application was recognised by the server (i.e. a trust relationship has been established)

isTrustedConnectionError

public boolean isTrustedConnectionError()
Returns:
true if there were any errors in processing the trusted application request

getTrustedConnectionErrors

public java.util.List<java.lang.String> getTrustedConnectionErrors()
Deprecated. as of confluence 2.10, use getTrustedTransportErrorMessages instead

Returns:
A list of errors reported by the server

getTrustedTransportErrorMessages

public java.util.List<com.atlassian.security.auth.trustedapps.TransportErrorMessage> getTrustedTransportErrorMessages()
Returns:
A list of TransportErrorMessages reported by the server

isTrustSupported

public boolean isTrustSupported()
Returns:
true if the server actually supports trusted application requests

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.