com.facebook
Enum SessionLoginBehavior

java.lang.Object
  extended by java.lang.Enum<SessionLoginBehavior>
      extended by com.facebook.SessionLoginBehavior
All Implemented Interfaces:
Serializable, Comparable<SessionLoginBehavior>

public enum SessionLoginBehavior
extends Enum<SessionLoginBehavior>

Specifies the behaviors to try during openForRead, openForPublish, requestNewReadPermissions, or requestNewPublishPermissions.


Enum Constant Summary
SSO_ONLY
          Specifies that Session should only attempt SSO.
SSO_WITH_FALLBACK
          Specifies that Session should attempt Single Sign On (SSO), and if that does not work fall back to dialog auth.
SUPPRESS_SSO
          Specifies that SSO should not be attempted, and to only use dialog auth.
 
Method Summary
static SessionLoginBehavior valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SessionLoginBehavior[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SSO_WITH_FALLBACK

public static final SessionLoginBehavior SSO_WITH_FALLBACK
Specifies that Session should attempt Single Sign On (SSO), and if that does not work fall back to dialog auth. This is the default behavior.


SSO_ONLY

public static final SessionLoginBehavior SSO_ONLY
Specifies that Session should only attempt SSO. If SSO fails, then the open or new permissions call fails.


SUPPRESS_SSO

public static final SessionLoginBehavior SUPPRESS_SSO
Specifies that SSO should not be attempted, and to only use dialog auth.

Method Detail

values

public static SessionLoginBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SessionLoginBehavior c : SessionLoginBehavior.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SessionLoginBehavior valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null