use of com.walmartlabs.concord.server.org.secret.SecretManager.DecryptedUsernamePassword in project concord by walmartlabs.
the class SecretResource method createUsernamePassword.
private SecretOperationResponse createUsernamePassword(UUID orgId, UUID projectId, String name, String storePassword, SecretVisibility visibility, MultipartInput input, String storeType) {
String username = MultipartUtils.assertString(input, Constants.Multipart.USERNAME);
String password = MultipartUtils.assertString(input, Constants.Multipart.PASSWORD);
DecryptedUsernamePassword e = secretManager.createUsernamePassword(orgId, projectId, name, storePassword, username, password.toCharArray(), visibility, storeType);
return new SecretOperationResponse(e.getId(), OperationResult.CREATED, storePassword);
}
Aggregations