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 Constructor Description EncryptedCredentialsAccessorImpl(CredentialsDao credentialsDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<CredentialsData>getAllCredentials()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 Detail
-
EncryptedCredentialsAccessorImpl
@Inject public EncryptedCredentialsAccessorImpl(CredentialsDao credentialsDao)
-
-
Method Detail
-
getAllCredentials
@NotNull public @NotNull List<CredentialsData> 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
@NotNull public @NotNull Optional<CredentialsData> getCredentialsById(long id)
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
-
-