1 package org.rundeck.api.domain; 2 3 import java.util.List; 4 5 /** 6 * KeyResource represents a directory or an SSH key file 7 * 8 * @author Greg Schueler <greg@simplifyops.com> 9 * @since 2014-04-04 10 */ 11 public interface KeyResource extends StorageResource { 12 /** 13 * Return true if this is a file and is a private SSH key file. 14 * @return 15 */ 16 public boolean isPrivateKey(); 17 18 /** 19 * Return the list of SSH Key resources if this is a directory 20 * @return 21 */ 22 public List<KeyResource> getDirectoryContents(); 23 }