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