Loading…

Kryptel/Java

IEncryptedFileStorageInfo interface

Declaration

package com.kryptel.storage;

public interface IEncryptedFileStorageInfo extends IEncryptedStorageInfo {
  long GetFileStorageCapabilities() throws Exception;
  FileStorageStatistics GetFileStorageStatistics() throws Exception;
  String GetDescription() throws Exception;
}

Description

This interface extends IEncryptedStorageInfo adding information specific to file agents.

GetFileStorageCapabilities

long GetFileStorageCapabilities() throws Exception;

The function result is the storage capability mask as returned by IEncryptedStorageInfo.GetStorageCapabilities supplemented by agent-specific flags.

The lower 32 bits contain Constants.ESTOR_* flags returned by underlying storage handler; the upper 32 bits (from 32nd to 63rd) contain additional Constants.EFSTOR_* flags.

Unlike the other IEncryptedFileStorageInfo functions, this function may be called even if there is no open container. In this case it returns generic storage capabilites.

GetFileStorageStatistics

FileStorageStatistics GetFileStorageStatistics() throws Exception;

Returns FileStorageStatistics structure with file object counters.

This function returns null if the storage does not support statistics (i.e. EFSTOR_FILE_STORAGE_STATISTICS flag in the storage capabilites mask is not set).

GetDescription

String GetDescription() throws Exception;

Returns the unencrypted container description or null if the container does not have one.