public class RemoteCredentialsAccessor extends Object implements CredentialsAccessor
CredentialsAccessor.IsCredentialsOfType
Constructor and Description |
---|
RemoteCredentialsAccessor(AgentContext agentContext) |
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 shared credentials by name
|
CredentialsData |
getCredentialsByOid(BambooEntityOid oid)
Find shared credentials by
BambooEntityOid |
boolean |
hasAnyCredentials(String pluginKey) |
public RemoteCredentialsAccessor(AgentContext agentContext)
@Nullable public CredentialsData getCredentials(long id)
CredentialsAccessor
getCredentials
in interface CredentialsAccessor
@Nullable public CredentialsData getCredentialsByOid(@NotNull BambooEntityOid oid)
CredentialsAccessor
BambooEntityOid
getCredentialsByOid
in interface CredentialsAccessor
@Nullable public CredentialsData getCredentialsByName(@NotNull String name)
CredentialsAccessor
getCredentialsByName
in interface CredentialsAccessor
@NotNull public Iterable<CredentialsData> getAllCredentials()
getAllCredentials
in interface CredentialsAccessor
@NotNull public Iterable<CredentialsData> getAllCredentials(@NotNull String pluginKey)
getAllCredentials
in interface CredentialsAccessor
public boolean hasAnyCredentials(@NotNull String pluginKey)
hasAnyCredentials
in interface CredentialsAccessor
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.