Vault | Java SDK | Secrets Endpoints
Secrets Endpoints
Store a secret
secretStore(SecretStoreRequest request)Store a secret in vault service.
SecretStoreResponse storeResponse =
client.secretStore(new SecretStoreRequest.SecretStoreRequestBuilder("mysecret", "mysecretname").build());
Rotate a secret
secretRotate(SecretRotateRequest request)Rotate a secret in vault service.
SecretRotateResponse rotateResponse = client.secretRotate(
new SecretRotateRequest.SecretRotateRequestBuilder("secretid", "mynewsecret")
.setRotationState(ItemVersionState.SUSPENDED)
.build()
);