Search in sources :

Example 1 with RsaGenerateRequest

use of org.cloudfoundry.credhub.request.RsaGenerateRequest in project credhub by cloudfoundry-incubator.

the class RsaCredentialRegeneratable method createGenerateRequest.

@Override
public BaseCredentialGenerateRequest createGenerateRequest(CredentialVersion credentialVersion, List<EventAuditRecordParameters> auditRecordParameters) {
    RsaCredentialVersion rsaCredential = (RsaCredentialVersion) credentialVersion;
    RsaGenerateRequest generateRequest = new RsaGenerateRequest();
    generateRequest.setName(rsaCredential.getName());
    generateRequest.setType(rsaCredential.getCredentialType());
    generateRequest.setOverwrite(true);
    return generateRequest;
}
Also used : RsaGenerateRequest(org.cloudfoundry.credhub.request.RsaGenerateRequest) RsaCredentialVersion(org.cloudfoundry.credhub.domain.RsaCredentialVersion)

Aggregations

RsaCredentialVersion (org.cloudfoundry.credhub.domain.RsaCredentialVersion)1 RsaGenerateRequest (org.cloudfoundry.credhub.request.RsaGenerateRequest)1