public interface CredentialsManager extends CredentialsAccessor
CredentialsAccessor.IsCredentialsOfType
Modifier and Type | Method and Description |
---|---|
CredentialsData |
createCredentials(CredentialTypeModuleDescriptor credentialDescriptor,
String credentialsName,
Map<String,String> credentialsConfig)
Creates Credentials from the configuration map and stores them in the database.
|
CredentialsData |
createOrUpdateCredentials(CredentialsData credentials)
Creates Credentials based on the object representation.
|
void |
deleteCredentials(long id)
Deletes credentials based on Id
|
CredentialsData |
editCredentials(long credentialsId,
String credentialsName,
Map<String,String> credentialsConfig)
Updates Credentials with values in the configuration map.
|
CredentialTypeModuleDescriptor |
getCredentialTypeDescriptor(String pluginKey) |
List<CredentialTypeModuleDescriptor> |
getCredentialTypeDescriptors() |
CredentialsData |
updateCredentialsName(long id,
String name)
Updates Shared Credentials name
|
getAllCredentials, getAllCredentials, getCredentials, hasAnyCredentials
@NotNull List<CredentialTypeModuleDescriptor> getCredentialTypeDescriptors()
@Nullable CredentialTypeModuleDescriptor getCredentialTypeDescriptor(@Nullable String pluginKey)
@Nullable CredentialsData updateCredentialsName(long id, @NotNull String name) throws WebValidationException
id
- The id of the object to updatename
- The new name to identify the credentialsWebValidationException
@NotNull CredentialsData createOrUpdateCredentials(@NotNull CredentialsData credentials)
credentials
- The object representation with the data to save.@NotNull CredentialsData createCredentials(@NotNull CredentialTypeModuleDescriptor credentialDescriptor, @NotNull String credentialsName, @NotNull Map<String,String> credentialsConfig)
credentialDescriptor
- The plugin module descriptor for the credential type being created.credentialsName
- The name for the credentials.credentialsConfig
- The configuration map containing the credential values as defined
by the plugin for this credential type.@NotNull CredentialsData editCredentials(long credentialsId, @NotNull String credentialsName, @NotNull Map<String,String> credentialsConfig)
credentialsId
- The ID of the credentials to update.credentialsName
- The name for the credentials.credentialsConfig
- The configuration map containing the credential values as defined by the plugin for
this credential type.void deleteCredentials(long id)
id
- id of the object to deleteCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.