Class SharedCredentials<B extends SharedCredentials<B,​C>,​C extends SharedCredentialsProperties>

  • Direct Known Subclasses:
    AnySharedCredentials

    public abstract class SharedCredentials<B extends SharedCredentials<B,​C>,​C extends SharedCredentialsProperties>
    extends RootEntityPropertiesBuilder<C>
    Represents a shared credentials data. Global shared credentials can be used by any plan. Project shared credentials can be used only by plans in Project.

    This class contains common data only. In order to define a specific type of credentials one should use the specialised implementation or, if such is not available, AnySharedCredentials class.

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract C build()  
      java.lang.String humanReadableId()
      Entity type and id representation that is shown to human.
      java.lang.String humanReadableType()
      Entity type that is shown to human.
      B name​(@NotNull java.lang.String name)
      Set the name by which credentials will be identified by Bamboo.
      B oid​(@Nullable BambooOid oid)
      Set the credential's oid from oid string.
      B oid​(@Nullable java.lang.String oid)
      Set the credential's oid.
      B project​(@NotNull Project project)
      Set the credential's project.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait