tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/IAMServiceAccountsService.java
private IAMServiceAccountAccessKeys populateAccesskeysFromMetaData(Response response) {
		JsonParser jsonParser = new JsonParser();
		List<String> accessKeys = new ArrayList<>();
		IAMServiceAccountAccessKeys iamServiceAccountAccessKeys = new IAMServiceAccountAccessKeys();
		JsonObject data = ((JsonObject) jsonParser.parse(response.getResponse())).getAsJsonObject("data");
		JsonArray dataSecret = ((JsonObject) jsonParser.parse(data.toString())).getAsJsonArray("secret");
		for (int i = 0; i < dataSecret.size(); i++) {
			JsonElement jsonElement = dataSecret.get(i);
			JsonObject jsonObject = jsonElement.getAsJsonObject();
			String accessKey = jsonObject.get("accessKeyId").getAsString();
			accessKeys.add(accessKey);
		}
		iamServiceAccountAccessKeys.setAccessKeyIds(accessKeys);
		return iamServiceAccountAccessKeys;
	}
/**
	 * populate access keys from metadata
	 *
	 * @param response
	 * @return
	 */
populate access keys from metadata
@param response
@return
populate access keys from metadata @param response @return
private IAMServiceAccountAccessKeys populateAccesskeysFromMetaData(Response response) {
		JsonParser jsonParser = new JsonParser();
		List<String> accessKeys = new ArrayList<>();
		IAMServiceAccountAccessKeys iamServiceAccountAccessKeys = new IAMServiceAccountAccessKeys();
		JsonObject data = ((JsonObject) jsonParser.parse(response.getResponse())).getAsJsonObject("data");
		JsonArray dataSecret = ((JsonObject) jsonParser.parse(data.toString())).getAsJsonArray("secret");
		for (int i = 0; i < dataSecret.size(); i++) {
			JsonElement jsonElement = dataSecret.get(i);
			JsonObject jsonObject = jsonElement.getAsJsonObject();
			String accessKey = jsonObject.get("accessKeyId").getAsString();
			accessKeys.add(accessKey);
		}
		iamServiceAccountAccessKeys.setAccessKeyIds(accessKeys);
		return iamServiceAccountAccessKeys;
	}
private IAMServiceAccountAccessKeys populateAccesskeysFromMetaData ( Response response ) { JsonParser jsonParser = new JsonParser ( ) ; List < String > accessKeys = new ArrayList < > ( ) ; IAMServiceAccountAccessKeys iamServiceAccountAccessKeys = new IAMServiceAccountAccessKeys ( ) ; JsonObject data = ( ( JsonObject ) jsonParser . parse ( response . getResponse ( ) ) ) . getAsJsonObject ( "data" ) ; JsonArray dataSecret = ( ( JsonObject ) jsonParser . parse ( data . toString ( ) ) ) . getAsJsonArray ( "secret" ) ; for ( int i = 0 ; i < dataSecret . size ( ) ; i ++ ) { JsonElement jsonElement = dataSecret . get ( i ) ; JsonObject jsonObject = jsonElement . getAsJsonObject ( ) ; String accessKey = jsonObject . get ( "accessKeyId" ) . getAsString ( ) ; accessKeys . add ( accessKey ) ; } iamServiceAccountAccessKeys . setAccessKeyIds ( accessKeys ) ; return iamServiceAccountAccessKeys ; }
populate access keys from metadata
 @param response
 @return
populate access keys from metadata @param response @return