All Downloads are FREE. Search and download functionalities are using the official Maven repository.

digital.toke.accessor.Secrets Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright 2019 David R. Smith All Rights Reserved 
 */
package digital.toke.accessor;

import java.util.ArrayList;
import java.util.List;

public class Secrets extends Accessor {

	public Secrets(Toke resp) {
		super(resp);
	}
	
	public List secrets() {
		List list = json().getJSONObject("data").getJSONArray("keys").toList();
		List newList = new ArrayList();
		list.forEach(item-> newList.add(String.valueOf(item)));
		return newList;
	}

}