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 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, List<String> trustedConnectionErrors, boolean trustSupported)
           
 
Method Summary
 List<String> getTrustedConnectionErrors()
          Deprecated. as of confluence 2.10, use getTrustedTransportErrorMessages instead
 List<com.atlassian.security.auth.trustedapps.TransportErrorMessage> getTrustedTransportErrorMessages()
           
 boolean isAppRecognized()
           
 boolean isTrustedConnectionError()
           
 boolean isTrustSupported()
           
 boolean isUserRecognized()
           
 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,
                               List<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

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

Returns:
A list of errors reported by the server

getTrustedTransportErrorMessages

public 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 String toString()
Overrides:
toString in class Object


Copyright © 2003-2013 Atlassian. All Rights Reserved.