public class ResourceClient extends Object implements ResourceProvider, ResourcesProvider
| Constructor and Description |
|---|
ResourceClient(Credentials credentials,
Endpoints endpoints) |
ResourceClient(Credentials credentials,
Endpoints endpoints,
SSLContext sslContext) |
ResourceClient(Token token,
Endpoints endpoints) |
ResourceClient(Token token,
Endpoints endpoints,
SSLContext sslContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSecret(String variableId,
String secret)
Creates a secret value within the specified variable
|
int |
countResources(ResourceQuery query)
Count resources using the provided query parameters.
|
List<ConjurResource> |
listResources(ResourceQuery query)
List resources using the provided query parameters.
|
Map<String,String> |
retrieveBatchSecrets(String... variableIds)
Fetch multiple secret values in one invocation using the batch retrieval API.
|
String |
retrieveSecret(String variableId)
Fetch the value of a secret in the specified variable
|
public ResourceClient(Credentials credentials, Endpoints endpoints)
public ResourceClient(Credentials credentials, Endpoints endpoints, SSLContext sslContext)
public ResourceClient(Token token, Endpoints endpoints, SSLContext sslContext)
public String retrieveSecret(String variableId)
ResourceProviderretrieveSecret in interface ResourceProvidervariableId - - id of the variablepublic void addSecret(String variableId, String secret)
ResourceProvideraddSecret in interface ResourceProvidervariableId - - id of the variablesecret - - Secret value within the specified variablepublic Map<String,String> retrieveBatchSecrets(String... variableIds)
Constructs fully-qualified variable IDs ({account}:variable:{id}) and sends them
as a comma-delimited list in the variable_ids query parameter.
retrieveBatchSecrets in interface ResourceProvidervariableIds - the variable IDs to retrieve (without account/kind prefix)public List<ConjurResource> listResources(ResourceQuery query)
listResources in interface ResourcesProviderquery - resource query parameters (nullable for no filters)jakarta.ws.rs.WebApplicationException - if the server returns an error responsepublic int countResources(ResourceQuery query)
countResources in interface ResourcesProviderquery - resource query parameters (nullable for no filters)jakarta.ws.rs.WebApplicationException - if the server returns an error responseCopyright © 2026. All rights reserved.