public interface CredentialsAccessor
Modifier and Type | Interface and Description |
---|---|
static class |
CredentialsAccessor.IsCredentialsOfType
Deprecated.
since 5.15, use
BambooPluginUtils#pluginKeyEquals(String) |
Modifier and Type | Method and Description |
---|---|
Iterable<CredentialsData> |
getAllCredentials() |
Iterable<CredentialsData> |
getAllCredentials(String pluginKey) |
CredentialsData |
getCredentials(long id)
Gets the Shared Credentials by id
|
CredentialsData |
getCredentialsByName(String name)
Find global shared credentials by name
|
CredentialsData |
getCredentialsByNameAndProjectId(String name,
long projectId)
Find shared credentials by name and project id
|
CredentialsData |
getCredentialsByOid(BambooEntityOid oid)
Find shared credentials by
BambooEntityOid |
Iterable<CredentialsData> |
getProjectCredentials(Long projectId) |
CredentialsData |
getProjectCredentials(long id,
long projectId)
Gets the Shared Credentials by id and projectId
|
Iterable<CredentialsData> |
getProjectCredentialsByPluginKey(Long projectId,
String pluginKey) |
boolean |
hasAnyCredentials(String pluginKey) |
@Nullable CredentialsData getCredentials(long id)
id
- @Nullable CredentialsData getProjectCredentials(long id, long projectId)
id
- @Nullable CredentialsData getCredentialsByOid(BambooEntityOid oid)
BambooEntityOid
oid
- @Nullable CredentialsData getCredentialsByName(String name)
name
- CredentialsData getCredentialsByNameAndProjectId(String name, long projectId)
name
- projectId
- @NotNull Iterable<CredentialsData> getAllCredentials()
@NotNull Iterable<CredentialsData> getProjectCredentials(@NotNull Long projectId)
projectId
- @NotNull Iterable<CredentialsData> getAllCredentials(@NotNull String pluginKey)
@NotNull Iterable<CredentialsData> getProjectCredentialsByPluginKey(@NotNull Long projectId, String pluginKey)
projectId
- pluginKey
- boolean hasAnyCredentials(@NotNull String pluginKey)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.