public class EncryptedCredentialsAccessorImpl extends Object implements EncryptedCredentialsAccessor
Constructor and Description |
---|
EncryptedCredentialsAccessorImpl(CredentialsDao credentialsDao) |
Modifier and Type | Method and 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 by
oid without decrypting its configuration. |
@Inject public EncryptedCredentialsAccessorImpl(CredentialsDao credentialsDao)
@NotNull public @NotNull List<CredentialsData> getAllCredentials()
EncryptedCredentialsAccessor
getAllCredentials
in interface EncryptedCredentialsAccessor
@NotNull public @NotNull Optional<CredentialsData> getCredentialsById(long id)
EncryptedCredentialsAccessor
getCredentialsById
in interface EncryptedCredentialsAccessor
id
- id of the shared credentials@NotNull public @NotNull Optional<CredentialsData> getCredentialsByOid(@NotNull @NotNull BambooEntityOid oid)
EncryptedCredentialsAccessor
oid
without decrypting its configuration.getCredentialsByOid
in interface EncryptedCredentialsAccessor
oid
- oid of the shared credentials@NotNull public @NotNull Optional<CredentialsData> getCredentialsByName(@NotNull @NotNull String name)
EncryptedCredentialsAccessor
getCredentialsByName
in interface EncryptedCredentialsAccessor
name
- name of the shared credentialsCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences