use of org.cloudfoundry.credhub.request.SshGenerateRequest in project credhub by cloudfoundry-incubator.
the class SshCredentialRegeneratable method createGenerateRequest.
@Override
public BaseCredentialGenerateRequest createGenerateRequest(CredentialVersion credentialVersion, List<EventAuditRecordParameters> auditRecordParameters) {
SshCredentialVersion sshCredential = (SshCredentialVersion) credentialVersion;
SshGenerateRequest generateRequest = new SshGenerateRequest();
generateRequest.setName(sshCredential.getName());
generateRequest.setType(sshCredential.getCredentialType());
SshGenerationParameters generationParameters = new SshGenerationParameters();
generationParameters.setSshComment(sshCredential.getComment());
generateRequest.setGenerationParameters(generationParameters);
generateRequest.setOverwrite(true);
return generateRequest;
}
Aggregations