public interface CredHubCredentialOperations
Modifier and Type | Method and Description |
---|---|
void |
deleteByName(CredentialName name)
Delete a credential by its full name.
|
java.util.List<CredentialSummary> |
findByName(CredentialName name)
Find a credential using a full or partial name.
|
java.util.List<CredentialSummary> |
findByPath(java.lang.String path)
Find a credential using a path.
|
<T,P> CredentialDetails<T> |
generate(ParametersRequest<P> parametersRequest)
Generate a new credential in CredHub, or overwrite an existing credential with a new
generated value.
|
java.util.List<CredentialPath> |
getAllPaths()
Deprecated.
as of CredHub 2.0 this operation is not supported
|
<T> CredentialDetails<T> |
getById(java.lang.String id,
java.lang.Class<T> credentialType)
Retrieve a credential using its ID, as returned in a write request.
|
<T> CredentialDetails<T> |
getByName(CredentialName name,
java.lang.Class<T> credentialType)
Retrieve a credential using its name, as passed to a write request.
|
<T> java.util.List<CredentialDetails<T>> |
getByNameWithHistory(CredentialName name,
java.lang.Class<T> credentialType)
Retrieve a credential using its name, as passed to a write request.
|
<T> java.util.List<CredentialDetails<T>> |
getByNameWithHistory(CredentialName name,
int versions,
java.lang.Class<T> credentialType)
Retrieve a credential using its name, as passed to a write request.
|
<T> CredentialDetails<T> |
regenerate(CredentialName name,
java.lang.Class<T> credentialType)
Regenerate a credential in CredHub.
|
<T> CredentialDetails<T> |
write(CredentialRequest<T> credentialRequest)
Write a new credential to CredHub, or overwrite an existing credential with a new
value.
|
<T> CredentialDetails<T> write(CredentialRequest<T> credentialRequest)
T
- the credential implementation typecredentialRequest
- the credential to write to CredHub; must not be null<T,P> CredentialDetails<T> generate(ParametersRequest<P> parametersRequest)
T
- the credential implementation typeP
- the credential parameter implementation typeparametersRequest
- the parameters of the new credential to generate in CredHub;
must not be null<T> CredentialDetails<T> regenerate(CredentialName name, java.lang.Class<T> credentialType)
T
- the credential implementation typename
- the name of the credential; must not be nullcredentialType
- the type of the credential to be regenerated; must not be null<T> CredentialDetails<T> getById(java.lang.String id, java.lang.Class<T> credentialType)
T
- the credential implementation typeid
- the ID of the credential; must not be nullcredentialType
- the type of the credential to be retrieved; must not be null<T> CredentialDetails<T> getByName(CredentialName name, java.lang.Class<T> credentialType)
T
- the credential implementation typename
- the name of the credential; must not be nullcredentialType
- the type of credential expected to be returned<T> java.util.List<CredentialDetails<T>> getByNameWithHistory(CredentialName name, java.lang.Class<T> credentialType)
T
- the credential implementation typename
- the name of the credential; must not be nullcredentialType
- the type of credential expected to be returned<T> java.util.List<CredentialDetails<T>> getByNameWithHistory(CredentialName name, int versions, java.lang.Class<T> credentialType)
T
- the credential implementation typename
- the name of the credential; must not be nullversions
- the number of historical versions to retrievecredentialType
- the type of credential expected to be returnedjava.util.List<CredentialSummary> findByName(CredentialName name)
name
- the name of the credential; must not be nulljava.util.List<CredentialSummary> findByPath(java.lang.String path)
path
- the path to the credential; must not be nulljava.util.List<CredentialPath> getAllPaths()
void deleteByName(CredentialName name)
name
- the name of the credential; must not be null