Enum OAuthMode
- java.lang.Object
-
- java.lang.Enum<OAuthMode>
-
- org.syncany.plugins.transfer.oauth.OAuthMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OAuthMode>
public enum OAuthMode extends java.lang.Enum<OAuthMode>
OAuth basically provides two different types of implicit grant. One is used by clients to directly acquire an Access token (often with a very short lifetime) to perform different API actions. The second mode is used by server and requires a separate step to transform an Authorization token into an actual Access token. Syncany supports both modes out of the box.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OAuthMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OAuthMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static OAuthMode[] 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 (OAuthMode c : OAuthMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OAuthMode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-