Interface KeyStorageTree

    • 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)  
      boolean hasPassword​(java.lang.String path)  
      boolean hasPrivateKey​(java.lang.String path)  
      boolean hasPublicKey​(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 type
        org.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 type
        org.rundeck.storage.api.StorageException - if not found
        java.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 type
        org.rundeck.storage.api.StorageException - if not found
        java.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 type
        org.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 type
        org.rundeck.storage.api.StorageException - if not found
        java.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 type
        org.rundeck.storage.api.StorageException - if not found
        java.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 type
        org.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 type
        org.rundeck.storage.api.StorageException - if not found
        java.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 type
        org.rundeck.storage.api.StorageException - if not found
        java.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