Enum Class GithubCredentialsSource

java.lang.Object
java.lang.Enum<GithubCredentialsSource>
com.atlassian.bamboo.plugins.github.GithubCredentialsSource
All Implemented Interfaces:
Serializable, Comparable<GithubCredentialsSource>, Constable

public enum GithubCredentialsSource extends Enum<GithubCredentialsSource>
Source of authentication credentials for GitHub repository.
  • Enum Constant Details

    • SHARED_CREDENTIALS

      public static final GithubCredentialsSource SHARED_CREDENTIALS
      Use global/project shared credentials.
    • CUSTOM

      public static final GithubCredentialsSource CUSTOM
      Use custom, user provided credentials declared as raw data either via UI or via Specs.
  • Method Details

    • values

      public static GithubCredentialsSource[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GithubCredentialsSource valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • from

      @NotNull public static @NotNull GithubCredentialsSource from(@Nullable @Nullable String name)