Search in sources :

Example 1 with DecryptedUsernamePassword

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);
}
Also used : DecryptedUsernamePassword(com.walmartlabs.concord.server.org.secret.SecretManager.DecryptedUsernamePassword)

Aggregations

DecryptedUsernamePassword (com.walmartlabs.concord.server.org.secret.SecretManager.DecryptedUsernamePassword)1