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()
EncryptedCredentialsAccessorgetAllCredentials in interface EncryptedCredentialsAccessor@NotNull public Optional<CredentialsData> getCredentialsById(long id)
EncryptedCredentialsAccessorgetCredentialsById in interface EncryptedCredentialsAccessorid - id of the shared credentials@NotNull public Optional<CredentialsData> getCredentialsByOid(@NotNull BambooEntityOid oid)
EncryptedCredentialsAccessoroid without decrypting its configuration.getCredentialsByOid in interface EncryptedCredentialsAccessoroid - oid of the shared credentials@NotNull public Optional<CredentialsData> getCredentialsByName(@NotNull String name)
EncryptedCredentialsAccessorgetCredentialsByName in interface EncryptedCredentialsAccessorname - name of the shared credentialsCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.