Class SharedCredentials<B extends SharedCredentials<B,C>,C extends SharedCredentialsProperties>
- Direct Known Subclasses:
AnySharedCredentials
,SshCredentials
,UsernamePasswordCredentials
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.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected BambooOidProperties
protected ProjectProperties
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract C
build()
Entity type and id representation that is shown to human.Entity type that is shown to human.Set the name by which credentials will be identified by Bamboo.Set the credential's oid from oid string.Set the credential's oid.Set the credential's project.
-
Field Details
-
TYPE
- See Also:
-
name
-
oid
-
project
-
-
Constructor Details
-
SharedCredentials
protected SharedCredentials() -
SharedCredentials
- Throws:
PropertiesValidationException
-
-
Method Details
-
name
Set the name by which credentials will be identified by Bamboo. In the absence of oid, the name is used to identify the shared credential. If the shared credential with given name does not exist, a new one is created, otherwise existing one is updated.- See Also:
-
oid
Set the credential's oid.If set, it is used to identify the shared credential. If the shared credential with given oid does not exist, a new one is created, otherwise existing one is updated. Setting both oid and name may result in existing shared credential being renamed.
- Throws:
PropertiesValidationException
-
oid
Set the credential's oid from oid string.If set, it is used to identify the shared credential. If the shared credential with given oid does not exist, a new one is created, otherwise existing one is updated. Setting both oid and name may result in existing shared credential being renamed.
- Throws:
PropertiesValidationException
-
project
Set the credential's project.If set, it is Project shared credentials, otherwise it is Global Shared Credentials.
-
humanReadableType
Description copied from class:RootEntityPropertiesBuilder
Entity type that is shown to human.- Specified by:
humanReadableType
in classRootEntityPropertiesBuilder<C extends SharedCredentialsProperties>
-
humanReadableId
Description copied from class:RootEntityPropertiesBuilder
Entity type and id representation that is shown to human.- Specified by:
humanReadableId
in classRootEntityPropertiesBuilder<C extends SharedCredentialsProperties>
-
build
- Specified by:
build
in classEntityPropertiesBuilder<C extends SharedCredentialsProperties>
-