public class RemoteCredentialsAccessor extends Object implements CredentialsAccessor
CredentialsAccessor.IsCredentialsOfType
Constructor and Description |
---|
RemoteCredentialsAccessor(AgentContext agentContext) |
Modifier and Type | Method and Description |
---|---|
@NotNull Iterable<CredentialsData> |
getAllCredentials() |
@NotNull Iterable<CredentialsData> |
getAllCredentials(@NotNull String pluginKey) |
@NotNull Iterable<CredentialsData> |
getAllCredentialsByPluginKey(@NotNull String pluginKey) |
@Nullable CredentialsData |
getCredentials(long id)
Gets the Shared Credentials by id
|
@Nullable CredentialsData |
getCredentialsByName(@NotNull String name)
Find global shared credentials by name
|
CredentialsData |
getCredentialsByNameAndProjectId(String name,
long projectId)
Find shared credentials by name and project id
|
@Nullable CredentialsData |
getCredentialsByOid(@NotNull BambooEntityOid oid)
Find shared credentials by
BambooEntityOid |
@NotNull Iterable<CredentialsData> |
getGlobalCredentials() |
@NotNull Iterable<CredentialsData> |
getGlobalCredentials(@NotNull String pluginKey) |
@NotNull Iterable<CredentialsData> |
getProjectCredentials(@NotNull Long projectId) |
@Nullable CredentialsData |
getProjectCredentials(long id,
long projectId)
Gets the Shared Credentials by id and projectId
|
@NotNull Iterable<CredentialsData> |
getProjectCredentialsByPluginKey(@NotNull Long projectId,
String pluginKey) |
boolean |
hasAnyCredentials(@NotNull String pluginKey) |
public RemoteCredentialsAccessor(AgentContext agentContext)
@Nullable public @Nullable CredentialsData getCredentials(long id)
CredentialsAccessor
getCredentials
in interface CredentialsAccessor
@Nullable public @Nullable CredentialsData getCredentialsByOid(@NotNull @NotNull BambooEntityOid oid)
CredentialsAccessor
BambooEntityOid
getCredentialsByOid
in interface CredentialsAccessor
@Nullable public @Nullable CredentialsData getCredentialsByName(@NotNull @NotNull String name)
CredentialsAccessor
getCredentialsByName
in interface CredentialsAccessor
public CredentialsData getCredentialsByNameAndProjectId(String name, long projectId)
CredentialsAccessor
getCredentialsByNameAndProjectId
in interface CredentialsAccessor
@NotNull public @NotNull Iterable<CredentialsData> getAllCredentials()
getAllCredentials
in interface CredentialsAccessor
@NotNull public @NotNull Iterable<CredentialsData> getGlobalCredentials()
getGlobalCredentials
in interface CredentialsAccessor
@NotNull public @NotNull Iterable<CredentialsData> getAllCredentials(@NotNull @NotNull String pluginKey)
getAllCredentials
in interface CredentialsAccessor
@NotNull public @NotNull Iterable<CredentialsData> getGlobalCredentials(@NotNull @NotNull String pluginKey)
getGlobalCredentials
in interface CredentialsAccessor
public boolean hasAnyCredentials(@NotNull @NotNull String pluginKey)
hasAnyCredentials
in interface CredentialsAccessor
@NotNull public @NotNull Iterable<CredentialsData> getProjectCredentials(@NotNull @NotNull Long projectId)
getProjectCredentials
in interface CredentialsAccessor
@NotNull public @NotNull Iterable<CredentialsData> getAllCredentialsByPluginKey(@NotNull @NotNull String pluginKey)
getAllCredentialsByPluginKey
in interface CredentialsAccessor
@NotNull public @NotNull Iterable<CredentialsData> getProjectCredentialsByPluginKey(@NotNull @NotNull Long projectId, String pluginKey)
getProjectCredentialsByPluginKey
in interface CredentialsAccessor
@Nullable public @Nullable CredentialsData getProjectCredentials(long id, long projectId)
CredentialsAccessor
getProjectCredentials
in interface CredentialsAccessor
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.