public class Secrets extends TaskClusterRequestHandler
The secrets service, is a simple key/value store for secret data guarded by TaskCluster scopes. It is typically available at secrets.taskcluster.net.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
defaultBaseURL |
| Constructor and Description |
|---|
Secrets() |
Secrets(String baseURL) |
Secrets(String clientId,
String accessToken) |
Secrets(String clientId,
String accessToken,
String certificate) |
| Modifier and Type | Method and Description |
|---|---|
CallSummary<EmptyPayload,Secret> |
get(String name)
Read the secret attached to some key.
|
CallSummary<EmptyPayload,SecretsList> |
list()
List the names of all visible secrets.
|
CallSummary<EmptyPayload,EmptyPayload> |
ping()
Documented later…
|
CallSummary<EmptyPayload,EmptyPayload> |
remove(String name)
Delete the secret attached to some key.
|
CallSummary<Secret,EmptyPayload> |
set(String name,
Secret payload)
Set a secret associated with some key.
|
CallSummary<Secret,EmptyPayload> |
update(String name,
Secret payload)
Update a secret associated with some key.
|
apiCall, configureHawk, setBaseURL, uriEncodeprotected static final String defaultBaseURL
public Secrets(String baseURL)
public Secrets()
public CallSummary<Secret,EmptyPayload> set(String name, Secret payload) throws APICallFailure
Set a secret associated with some key.
APICallFailurepublic CallSummary<Secret,EmptyPayload> update(String name, Secret payload) throws APICallFailure
Update a secret associated with some key.
APICallFailurepublic CallSummary<EmptyPayload,EmptyPayload> remove(String name) throws APICallFailure
Delete the secret attached to some key.
APICallFailurepublic CallSummary<EmptyPayload,Secret> get(String name) throws APICallFailure
Read the secret attached to some key.
APICallFailurepublic CallSummary<EmptyPayload,SecretsList> list() throws APICallFailure
List the names of all visible secrets.
APICallFailurepublic CallSummary<EmptyPayload,EmptyPayload> ping() throws APICallFailure
Documented later…
Warning this api end-point is not stable.
APICallFailureCopyright © 2014–2016 Mozilla. All rights reserved.