Search in sources :

Example 1 with DecryptedBinaryData

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);
}
Also used : ByteArrayInputStream(java.io.ByteArrayInputStream) InputStream(java.io.InputStream) DecryptedBinaryData(com.walmartlabs.concord.server.org.secret.SecretManager.DecryptedBinaryData)

Aggregations

DecryptedBinaryData (com.walmartlabs.concord.server.org.secret.SecretManager.DecryptedBinaryData)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStream (java.io.InputStream)1