use of com.sequenceiq.environment.api.v1.platformresource.model.EncryptionKeyConfigResponse in project cloudbreak by hortonworks.
the class CloudEncryptionKeysToPlatformEncryptionKeysV1ResponseConverter method convert.
public PlatformEncryptionKeysResponse convert(CloudEncryptionKeys source) {
PlatformEncryptionKeysResponse platformEncryptionKeysResponse = new PlatformEncryptionKeysResponse();
Set<EncryptionKeyConfigResponse> result = new HashSet<>();
for (CloudEncryptionKey entry : source.getCloudEncryptionKeys()) {
EncryptionKeyConfigResponse actual = new EncryptionKeyConfigResponse(entry.getName(), entry.getId(), entry.getDescription(), entry.getDisplayName(), entry.getProperties());
result.add(actual);
}
platformEncryptionKeysResponse.setEncryptionKeyConfigs(result);
return platformEncryptionKeysResponse;
}
Aggregations