IFileSystemAttributes interface
Contents
- Introduction to the Library
- Basic support package (com.kryptel.bslx)
- Kryptel API Commons package (com.kryptel)
- Cipher package (com.kryptel.cipher)
- Compressor package (com.kryptel.compressor)
- Exceptions package (com.kryptel.exceptions)
- Hash function package (com.kryptel.hash_function)
- MAC function package (com.kryptel.mac)
- Key-related functions (com.kryptel.key)
- Silver Key engine (com.kryptel.silver_key)
- Kryptel encrypted storage (com.kryptel.storage)
- Handlers and Agents
- Names and Unique Names
- Kryptel class
- FileStorageStatistics structure
- StorageStatistics structure
- IEncryptedStorage interface
- IEncryptedStorageInfo interface
- IEncryptedObject interface
- IEncryptedStream interface
- IEncryptedFileStorage interface
- IEncryptedFileStorageInfo interface
- IFileSystemAttributes interface
- IEncryptedDirectory interface
- IEncryptedFile interface
- Example: Password storage
- File encryption examples
Declaration
package com.kryptel.storage; public interface IFileSystemAttributes { IEncryptedDirectory GetParent() throws Exception; String GetUniqueName() throws Exception; String GetName() throws Exception; void SetName(String name) throws Exception; long GetTime() throws Exception; void SetTime(long ftime) throws Exception; String GetDescription() throws Exception; void SetDescription(String descr) throws Exception; long GetAttributes() throws Exception; void SetAttributes(int attr) throws Exception; }
Description
This interface is a common ancestor for IEncryptedDirectory and IEncryptedFile representing attributes that are common for all file objects.
GetParent
IEncryptedDirectory GetParent() throws Exception;
Returns IEncryptedDirectory of the parent directory or null if the item is a root folder.
GetUniqueName
String GetUniqueName() throws Exception;
Returns the item's unique name.
GetName
String GetName() throws Exception;
Returns the item's name.
SetName
void SetName(String name) throws Exception;
Changes the item's name to name.
GetTime
long GetTime() throws Exception;
Get the item's timestamp. The timestamp value is the number of seconds passed since Jan 1st, 1970.
SetTime
void SetTime(long ftime) throws Exception;
Modifies the item's timestamp. The timestamp value is the number of seconds passed since Jan 1st, 1970.
GetDescription
String GetDescription() throws Exception;
Returns the item's text description. If the item does not have any description, returns null.
SetDescription
void SetDescription(String descr) throws Exception;
Attach a text description to the item.
GetAttributes
long GetAttributes() throws Exception;
Returns the item's attributes. Low 32 bits contain system-specific attributes, and high 32 bits (from 32 to 63) contain Constants.EFFL_* flags.
SetAttributes
void SetAttributes(int attr) throws Exception;
Set system-specific attributes.