public class ReactiveCredHubCredentialTemplate extends Object implements ReactiveCredHubCredentialOperations
| Constructor and Description |
|---|
ReactiveCredHubCredentialTemplate(ReactiveCredHubOperations credHubOperations)
Create a new
ReactiveCredHubCredentialTemplate. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
deleteByName(CredentialName name)
Delete a credential by its full name.
|
reactor.core.publisher.Flux<CredentialSummary> |
findByName(CredentialName name)
Find a credential using a full or partial name.
|
reactor.core.publisher.Flux<CredentialSummary> |
findByPath(String path)
Find a credential using a path.
|
<T,P> reactor.core.publisher.Mono<CredentialDetails<T>> |
generate(ParametersRequest<P> parametersRequest,
Class<T> credentialType)
Generate a new credential in CredHub, or overwrite an existing credential with a
new generated value.
|
<T> reactor.core.publisher.Mono<CredentialDetails<T>> |
getById(String id,
Class<T> credentialType)
Retrieve a credential using its ID, as returned in a write request.
|
<T> reactor.core.publisher.Mono<CredentialDetails<T>> |
getByName(CredentialName name,
Class<T> credentialType)
Retrieve a credential using its name, as passed to a write request.
|
<T> reactor.core.publisher.Flux<CredentialDetails<T>> |
getByNameWithHistory(CredentialName name,
Class<T> credentialType)
Retrieve a credential using its name, as passed to a write request.
|
<T> reactor.core.publisher.Flux<CredentialDetails<T>> |
getByNameWithHistory(CredentialName name,
int versions,
Class<T> credentialType)
Retrieve a credential using its name, as passed to a write request.
|
<T> reactor.core.publisher.Mono<CredentialDetails<T>> |
regenerate(CredentialName name,
Class<T> credentialType)
Regenerate a credential in CredHub.
|
<T> reactor.core.publisher.Mono<CredentialDetails<T>> |
write(CredentialRequest<T> credentialRequest)
Write a new credential to CredHub, or overwrite an existing credential with a new
value.
|
public ReactiveCredHubCredentialTemplate(ReactiveCredHubOperations credHubOperations)
ReactiveCredHubCredentialTemplate.credHubOperations - the ReactiveCredHubOperations to use for
interactions with CredHubpublic <T> reactor.core.publisher.Mono<CredentialDetails<T>> write(CredentialRequest<T> credentialRequest)
ReactiveCredHubCredentialOperationswrite in interface ReactiveCredHubCredentialOperationsT - the credential implementation typecredentialRequest - the credential to write to CredHub; must not be
nullpublic <T,P> reactor.core.publisher.Mono<CredentialDetails<T>> generate(ParametersRequest<P> parametersRequest, Class<T> credentialType)
ReactiveCredHubCredentialOperationsgenerate in interface ReactiveCredHubCredentialOperationsT - the credential implementation typeP - the credential parameter implementation typeparametersRequest - the parameters of the new credential to generate in
CredHub; must not be nullcredentialType - the type of the credential to be regenerated; must not be
nullpublic <T> reactor.core.publisher.Mono<CredentialDetails<T>> regenerate(CredentialName name, Class<T> credentialType)
ReactiveCredHubCredentialOperationsregenerate in interface ReactiveCredHubCredentialOperationsT - the credential implementation typename - the name of the credential; must not be nullcredentialType - the type of the credential to be regenerated; must not be
nullpublic <T> reactor.core.publisher.Mono<CredentialDetails<T>> getById(String id, Class<T> credentialType)
ReactiveCredHubCredentialOperationsgetById in interface ReactiveCredHubCredentialOperationsT - the credential implementation typeid - the ID of the credential; must not be nullcredentialType - the type of the credential to be retrieved; must not be
nullpublic <T> reactor.core.publisher.Mono<CredentialDetails<T>> getByName(CredentialName name, Class<T> credentialType)
ReactiveCredHubCredentialOperationsgetByName in interface ReactiveCredHubCredentialOperationsT - the credential implementation typename - the name of the credential; must not be nullcredentialType - the type of credential expected to be returnedpublic <T> reactor.core.publisher.Flux<CredentialDetails<T>> getByNameWithHistory(CredentialName name, Class<T> credentialType)
ReactiveCredHubCredentialOperationsgetByNameWithHistory in interface ReactiveCredHubCredentialOperationsT - the credential implementation typename - the name of the credential; must not be nullcredentialType - the type of credential expected to be returnedpublic <T> reactor.core.publisher.Flux<CredentialDetails<T>> getByNameWithHistory(CredentialName name, int versions, Class<T> credentialType)
ReactiveCredHubCredentialOperationsgetByNameWithHistory in interface ReactiveCredHubCredentialOperationsT - 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 returnedpublic reactor.core.publisher.Flux<CredentialSummary> findByName(CredentialName name)
ReactiveCredHubCredentialOperationsfindByName in interface ReactiveCredHubCredentialOperationsname - the name of the credential; must not be nullpublic reactor.core.publisher.Flux<CredentialSummary> findByPath(String path)
ReactiveCredHubCredentialOperationsfindByPath in interface ReactiveCredHubCredentialOperationspath - the path to the credential; must not be nullpublic reactor.core.publisher.Mono<Void> deleteByName(CredentialName name)
ReactiveCredHubCredentialOperationsdeleteByName in interface ReactiveCredHubCredentialOperationsname - the name of the credential; must not be nullMono