use of org.ovirt.engine.core.common.action.ImportProviderCertificateParameters in project ovirt-engine by oVirt.
the class AbstractBackendExternalProviderResource method importCertificates.
@Override
public Response importCertificates(Action action) {
Provider provider = BackendExternalProviderHelper.getProvider(this, id);
validateParameters(action, "certificates.content");
String content = null;
Certificates certificates = action.getCertificates();
if (certificates != null) {
List<Certificate> list = certificates.getCertificates();
if (!CollectionUtils.isEmpty(list)) {
content = list.get(0).getContent();
}
}
return performAction(ActionType.ImportProviderCertificate, new ImportProviderCertificateParameters(provider, content));
}
Aggregations