Package com.atlassian.bamboo.credentials
Class EncryptedCredentialsAccessorImpl
java.lang.Object
com.atlassian.bamboo.credentials.EncryptedCredentialsAccessorImpl
- All Implemented Interfaces:
EncryptedCredentialsAccessor
public class EncryptedCredentialsAccessorImpl
extends Object
implements EncryptedCredentialsAccessor
-
Constructor Summary
-
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.
-
Constructor Details
-
EncryptedCredentialsAccessorImpl
-
-
Method Details
-
getAllCredentials
Description copied from interface:EncryptedCredentialsAccessor
Gets all shared credentials without decrypting their configuration.- Specified by:
getAllCredentials
in interfaceEncryptedCredentialsAccessor
- Returns:
- the list of all shared credentials, with each entity's configuration still encrypted
-
getCredentialsById
Description copied from interface:EncryptedCredentialsAccessor
Gets the shared credentials by id without decrypting its configuration.- Specified by:
getCredentialsById
in interfaceEncryptedCredentialsAccessor
- Parameters:
id
- id of the shared credentials- Returns:
- shared credentials object if found, with configuration still encrypted
-
getCredentialsByOid
@NotNull public @NotNull Optional<CredentialsData> getCredentialsByOid(@NotNull @NotNull BambooEntityOid oid) Description copied from interface:EncryptedCredentialsAccessor
Gets the shared credentials byoid
without decrypting its configuration.- Specified by:
getCredentialsByOid
in interfaceEncryptedCredentialsAccessor
- Parameters:
oid
- oid of the shared credentials- Returns:
- shared credentials object if found, with configuration still encrypted
-
getCredentialsByName
@NotNull public @NotNull Optional<CredentialsData> getCredentialsByName(@NotNull @NotNull String name) Description copied from interface:EncryptedCredentialsAccessor
Gets the shared credentials by name without decrypting its configuration.- Specified by:
getCredentialsByName
in interfaceEncryptedCredentialsAccessor
- Parameters:
name
- name of the shared credentials- Returns:
- shared credentials object if found, with configuration still encrypted
-