Class UsernamePasswordCredentials
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<T>
com.atlassian.bamboo.specs.api.builders.RootEntityPropertiesBuilder<C>
com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials<UsernamePasswordCredentials,UsernamePasswordCredentialsProperties>
com.atlassian.bamboo.specs.builders.credentials.UsernamePasswordCredentials
public class UsernamePasswordCredentials
extends SharedCredentials<UsernamePasswordCredentials,UsernamePasswordCredentialsProperties>
Represent shared username/password credentials.
Shared username/password credentials can be used when defining authorisation of VCS repositories (e.g.
GitRepository
) and in certain tasks.-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials
name, oid, project, TYPE
-
Constructor Summary
ConstructorDescriptionCreate new username/password credentials.Create new username/password credentials with name. -
Method Summary
Modifier and TypeMethodDescriptionprotected UsernamePasswordCredentialsProperties
build()
Set password.Set username.Methods inherited from class com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials
humanReadableId, humanReadableType, name, oid, oid, project
-
Constructor Details
-
UsernamePasswordCredentials
public UsernamePasswordCredentials()Create new username/password credentials. -
UsernamePasswordCredentials
Create new username/password credentials with name.- Parameters:
name
- name of the credentials.
-
-
Method Details
-
username
Set username. -
password
Set password. -
build
- Specified by:
build
in classSharedCredentials<UsernamePasswordCredentials,
UsernamePasswordCredentialsProperties>
-