Interface KeyStorageTree
-
- All Superinterfaces:
AppService,StorageTree,org.rundeck.storage.api.Tree<ResourceMeta>
public interface KeyStorageTree extends StorageTree, AppService
Utility enhancements to provide password/key loading
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.rundeck.storage.api.Resource<ResourceMeta>getPassword(org.rundeck.storage.api.Path path)org.rundeck.storage.api.Resource<ResourceMeta>getPrivateKey(org.rundeck.storage.api.Path path)org.rundeck.storage.api.Resource<ResourceMeta>getPublicKey(org.rundeck.storage.api.Path path)booleanhasPassword(java.lang.String path)booleanhasPrivateKey(java.lang.String path)booleanhasPublicKey(java.lang.String path)byte[]readPassword(java.lang.String path)byte[]readPassword(org.rundeck.storage.api.Path path)byte[]readPrivateKey(java.lang.String path)byte[]readPrivateKey(org.rundeck.storage.api.Path path)byte[]readPublicKey(java.lang.String path)byte[]readPublicKey(org.rundeck.storage.api.Path path)-
Methods inherited from interface org.rundeck.storage.api.Tree
createResource, createResource, deleteResource, deleteResource, getPath, getPath, getResource, getResource, hasDirectory, hasDirectory, hasPath, hasPath, hasResource, hasResource, listDirectory, listDirectory, listDirectoryResources, listDirectoryResources, listDirectorySubdirs, listDirectorySubdirs, updateResource, updateResource
-
-
-
-
Method Detail
-
getPassword
org.rundeck.storage.api.Resource<ResourceMeta> getPassword(org.rundeck.storage.api.Path path)
- Parameters:
path- path- Returns:
- password resource
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not found
-
readPassword
byte[] readPassword(org.rundeck.storage.api.Path path) throws java.io.IOException- Parameters:
path- path- Returns:
- password data
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not foundjava.io.IOException
-
readPassword
byte[] readPassword(java.lang.String path) throws java.io.IOException- Parameters:
path- path- Returns:
- password data
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not foundjava.io.IOException
-
getPublicKey
org.rundeck.storage.api.Resource<ResourceMeta> getPublicKey(org.rundeck.storage.api.Path path)
- Parameters:
path- path- Returns:
- public key resource
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not found
-
readPublicKey
byte[] readPublicKey(org.rundeck.storage.api.Path path) throws java.io.IOException- Parameters:
path- path- Returns:
- public key data
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not foundjava.io.IOException
-
readPublicKey
byte[] readPublicKey(java.lang.String path) throws java.io.IOException- Parameters:
path- path- Returns:
- public key data
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not foundjava.io.IOException
-
getPrivateKey
org.rundeck.storage.api.Resource<ResourceMeta> getPrivateKey(org.rundeck.storage.api.Path path)
- Parameters:
path- path- Returns:
- private key resource
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not found
-
readPrivateKey
byte[] readPrivateKey(org.rundeck.storage.api.Path path) throws java.io.IOException- Parameters:
path- path- Returns:
- private key data
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not foundjava.io.IOException
-
readPrivateKey
byte[] readPrivateKey(java.lang.String path) throws java.io.IOException- Parameters:
path- path- Returns:
- private key data
- Throws:
com.dtolabs.rundeck.core.storage.WrongContentType- if not the right content typeorg.rundeck.storage.api.StorageException- if not foundjava.io.IOException
-
hasPassword
boolean hasPassword(java.lang.String path)
- Parameters:
path- path- Returns:
- true if the resource exists and is the right content type
-
hasPrivateKey
boolean hasPrivateKey(java.lang.String path)
- Parameters:
path- path- Returns:
- true if the resource exists and is the right content type
-
hasPublicKey
boolean hasPublicKey(java.lang.String path)
- Parameters:
path- path- Returns:
- true if the resource exists and is the right content type
-
-