Package com.cyberark.conjur.api.clients
Class ResourceClient
- java.lang.Object
-
- com.cyberark.conjur.api.clients.ResourceClient
-
- All Implemented Interfaces:
ResourceProvider
public class ResourceClient extends Object implements ResourceProvider
Conjur service client.
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSecret(String variableId, String secret)Creates a secret value within the specified variableStringretrieveSecret(String variableId)Fetch the value of a secret in the specified variable
-
-
-
Constructor Detail
-
ResourceClient
public ResourceClient(Credentials credentials, Endpoints endpoints)
-
ResourceClient
public ResourceClient(Credentials credentials, Endpoints endpoints, SSLContext sslContext)
-
ResourceClient
public ResourceClient(Token token, Endpoints endpoints, SSLContext sslContext)
-
-
Method Detail
-
retrieveSecret
public String retrieveSecret(String variableId)
Description copied from interface:ResourceProviderFetch the value of a secret in the specified variable- Specified by:
retrieveSecretin interfaceResourceProvider- Parameters:
variableId- - id of the variable- Returns:
- The value of a secret from the specified variable
-
addSecret
public void addSecret(String variableId, String secret)
Description copied from interface:ResourceProviderCreates a secret value within the specified variable- Specified by:
addSecretin interfaceResourceProvider- Parameters:
variableId- - id of the variablesecret- - Secret value within the specified variable
-
-