Enum BitbucketPasswordCredentialsSource
- java.lang.Object
-
- java.lang.Enum<BitbucketPasswordCredentialsSource>
-
- com.atlassian.bamboo.plugins.bitbucket.BitbucketPasswordCredentialsSource
-
- All Implemented Interfaces:
Serializable
,Comparable<BitbucketPasswordCredentialsSource>
public enum BitbucketPasswordCredentialsSource extends Enum<BitbucketPasswordCredentialsSource>
Source of username and password authentication credentials for Bitbucket Cloud repository.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM
Use custom, user provided username and password.SHARED_CREDENTIALS
Use shared credentials to obtain username and password.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BitbucketPasswordCredentialsSource
valueOf(String name)
Returns the enum constant of this type with the specified name.static BitbucketPasswordCredentialsSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SHARED_CREDENTIALS
public static final BitbucketPasswordCredentialsSource SHARED_CREDENTIALS
Use shared credentials to obtain username and password.
-
CUSTOM
public static final BitbucketPasswordCredentialsSource CUSTOM
Use custom, user provided username and password.
-
-
Method Detail
-
values
public static BitbucketPasswordCredentialsSource[] 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 (BitbucketPasswordCredentialsSource c : BitbucketPasswordCredentialsSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BitbucketPasswordCredentialsSource 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
-
-