Package com.atlassian.connect.spring
Enum AddonAuthenticationType
- java.lang.Object
-
- java.lang.Enum<AddonAuthenticationType>
-
- com.atlassian.connect.spring.AddonAuthenticationType
-
- All Implemented Interfaces:
Serializable
,Comparable<AddonAuthenticationType>
public enum AddonAuthenticationType extends Enum<AddonAuthenticationType>
AddonAuthenticationType
specifies the authentication scheme that the app uses to communicate with Atlassian products for the host site.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AddonAuthenticationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static AddonAuthenticationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JWT
public static final AddonAuthenticationType JWT
Default JWT authentication scheme for connect apps
-
OAUTH2
public static final AddonAuthenticationType OAUTH2
OAuth 2.0 authentication scheme for connect-on-forge apps
-
-
Method Detail
-
values
public static AddonAuthenticationType[] 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 (AddonAuthenticationType c : AddonAuthenticationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddonAuthenticationType 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 nameNullPointerException
- if the argument is null
-
-