public class PropertyCredentialsStorage extends java.lang.Object implements CredentialsStorage
CredentialsStorage.NoneUTF_8| Constructor and Description |
|---|
PropertyCredentialsStorage(org.gradle.api.Project project,
CredentialsExtension extension)
Initialize a new property credential storage for the given project.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCredentials(java.lang.String service)
Clear the stored credentials for the given service name.
|
Credentials |
findCredentials(java.lang.String service)
Find the credentials for the given service name.
|
void |
setCredentials(java.lang.String service,
Credentials credentials)
Set the given credentials object for the specified service.
|
void |
setCredentials(java.lang.String service,
java.lang.String username,
char[] password)
Set the given username and password as credential for the specified service.
|
public PropertyCredentialsStorage(org.gradle.api.Project project,
CredentialsExtension extension)
project - the current Gradle project used to locate the fileextension - the credentials configuration extensionpublic Credentials findCredentials(java.lang.String service)
CredentialsStoragefindCredentials in interface CredentialsStorageservice - the service namepublic void setCredentials(java.lang.String service,
java.lang.String username,
char[] password)
CredentialsStoragesetCredentials in interface CredentialsStorageservice - the service nameusername - the username to setpassword - the password to setpublic void setCredentials(java.lang.String service,
Credentials credentials)
CredentialsStoragesetCredentials in interface CredentialsStorageservice - the service namecredentials - the credentials objectpublic void clearCredentials(java.lang.String service)
CredentialsStorageclearCredentials in interface CredentialsStorageservice - the service name