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
Constructors -
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 byoidwithout decrypting its configuration.
-
Constructor Details
-
EncryptedCredentialsAccessorImpl
-
-
Method Details
-
getAllCredentials
Description copied from interface:EncryptedCredentialsAccessorGets all shared credentials without decrypting their configuration.- Specified by:
getAllCredentialsin interfaceEncryptedCredentialsAccessor- Returns:
- the list of all shared credentials, with each entity's configuration still encrypted
-
getCredentialsById
Description copied from interface:EncryptedCredentialsAccessorGets the shared credentials by id without decrypting its configuration.- Specified by:
getCredentialsByIdin 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:EncryptedCredentialsAccessorGets the shared credentials byoidwithout decrypting its configuration.- Specified by:
getCredentialsByOidin 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:EncryptedCredentialsAccessorGets the shared credentials by name without decrypting its configuration.- Specified by:
getCredentialsByNamein interfaceEncryptedCredentialsAccessor- Parameters:
name- name of the shared credentials- Returns:
- shared credentials object if found, with configuration still encrypted
-