Package com.atlassian.bamboo.credentials
Interface EncryptedCredentialsAccessor
- All Known Implementing Classes:
EncryptedCredentialsAccessorImpl
public interface EncryptedCredentialsAccessor
Accessor for shared credentials which does not decrypt their configuration. Should be used e.g. for exporting data
outside of Bamboo.
- Since:
- 5.15
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<CredentialsData>
Gets all shared credentials without decrypting their configuration.@NotNull Optional<CredentialsData>
getCredentialsById
(long id) Gets the shared credentials by id without decrypting its configuration.@NotNull Optional<CredentialsData>
getCredentialsByName
(@NotNull String name) Gets the shared credentials by name without decrypting its configuration.@NotNull Optional<CredentialsData>
getCredentialsByOid
(@NotNull BambooEntityOid oid) Gets the shared credentials byoid
without decrypting its configuration.
-
Method Details
-
getAllCredentials
Gets all shared credentials without decrypting their configuration.- Returns:
- the list of all shared credentials, with each entity's configuration still encrypted
-
getCredentialsById
Gets the shared credentials by id without decrypting its configuration.- Parameters:
id
- id of the shared credentials- Returns:
- shared credentials object if found, with configuration still encrypted
-
getCredentialsByOid
@NotNull @NotNull Optional<CredentialsData> getCredentialsByOid(@NotNull @NotNull BambooEntityOid oid) Gets the shared credentials byoid
without decrypting its configuration.- Parameters:
oid
- oid of the shared credentials- Returns:
- shared credentials object if found, with configuration still encrypted
-
getCredentialsByName
Gets the shared credentials by name without decrypting its configuration.- Parameters:
name
- name of the shared credentials- Returns:
- shared credentials object if found, with configuration still encrypted
-