Class SimpleAccessControlScpEventListener

    • Constructor Detail

      • SimpleAccessControlScpEventListener

        protected SimpleAccessControlScpEventListener()
    • Method Detail

      • isFileDownloadAllowed

        protected abstract boolean isFileDownloadAllowed​(Session session,
                                                         java.nio.file.Path path)
                                                  throws java.io.IOException
        Parameters:
        session - The client/server Session through which the transfer is being executed
        path - The local file/folder path
        Returns:
        true if client is allowed to read from the specified local path
        Throws:
        java.io.IOException - If failed to handle the call
      • isFileUploadAllowed

        protected abstract boolean isFileUploadAllowed​(Session session,
                                                       java.nio.file.Path path)
                                                throws java.io.IOException
        Parameters:
        session - The client/server Session through which the transfer is being executed
        path - The local file/folder path
        Returns:
        true if client is allowed to write to the specified local path
        Throws:
        java.io.IOException - If failed to handle the call