use of com.walmartlabs.concord.server.org.secret.SecretManager.DecryptedBinaryData in project concord by walmartlabs.
the class SecretResource method createData.
private SecretOperationResponse createData(UUID orgId, UUID projectId, String name, String storePassword, SecretVisibility visibility, MultipartInput input, String storeType) throws IOException {
InputStream data = MultipartUtils.assertStream(input, Constants.Multipart.DATA);
DecryptedBinaryData e = secretManager.createBinaryData(orgId, projectId, name, storePassword, data, visibility, storeType);
return new SecretOperationResponse(e.getId(), OperationResult.CREATED, storePassword);
}
Aggregations