public class CredentialsProperty
extends java.lang.Object
credentials {
// use array type access to credentials via service name
username project.credentials['nexus'].username
password project.credentials['nexus'].password
// use getter access to credentials via service name
username project.credentials.get('nexus').username
password project.credentials.get('nexus').password
// or use string interpolation
username "${credentials['nexus'].username}"
password "${credentials['nexus'].password}"
}
| Constructor and Description |
|---|
CredentialsProperty(de.qaware.seu.as.code.plugins.credentials.CredentialsStorageFactory storageFactory)
Initialize the credentials property with a storage factory.
|
| Modifier and Type | Method and Description |
|---|---|
Credentials |
get(java.lang.String service)
Returns the credentials with the given service name.
|
public CredentialsProperty(de.qaware.seu.as.code.plugins.credentials.CredentialsStorageFactory storageFactory)
storageFactory - the storage factorypublic Credentials get(java.lang.String service)
service - the service name