Enum VcsAuthType
- java.lang.Object
-
- java.lang.Enum<VcsAuthType>
-
- jetbrains.buildServer.pullRequests.VcsAuthType
-
- All Implemented Interfaces:
Serializable
,Comparable<VcsAuthType>
public enum VcsAuthType extends Enum<VcsAuthType>
- Author:
- anton.zamolotskikh, 2019-04-26.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_TOKEN
ANONYMOUS
OTHER
PASSWORD
PRIVATE_KEY_DEFAULT
PRIVATE_KEY_FILE
TEAMCITY_SSH_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VcsAuthType
get(Map<String,String> vcsProperties)
static VcsAuthType
valueOf(String name)
Returns the enum constant of this type with the specified name.static VcsAuthType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANONYMOUS
public static final VcsAuthType ANONYMOUS
-
PRIVATE_KEY_FILE
public static final VcsAuthType PRIVATE_KEY_FILE
-
TEAMCITY_SSH_KEY
public static final VcsAuthType TEAMCITY_SSH_KEY
-
PRIVATE_KEY_DEFAULT
public static final VcsAuthType PRIVATE_KEY_DEFAULT
-
PASSWORD
public static final VcsAuthType PASSWORD
-
ACCESS_TOKEN
public static final VcsAuthType ACCESS_TOKEN
-
OTHER
public static final VcsAuthType OTHER
-
-
Method Detail
-
values
public static VcsAuthType[] 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 (VcsAuthType c : VcsAuthType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VcsAuthType 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
-
get
public static VcsAuthType get(Map<String,String> vcsProperties)
-
-