Pacoteflash.data
Classepublic class EncryptedLocalStore
HerançaEncryptedLocalStore Inheritance Object

The EncryptedLocalStore class provides methods for setting and getting objects in the encrypted local data store for an AIR application. A persistent encrypted local store is available for each AIR application installed on a user's computer. This lets you save and retrieve data that is stored on the user's local hard drive in an encrypted format that cannot be deciphered by other applications or users. A separate encrypted local store is used for each AIR application, and each AIR application uses a separate encrypted local store for each user.

You may want to use the encrypted local store to store information that must be secured, such as login credentials for web services.

AIR uses DPAPI on Windows and KeyChain on Mac OS to associate the encrypted local store to each application and user. The encrypted local store uses AES-CBC 128-bit encryption.

Information in the encrypted local data store is only available to AIR application content in the application security sandbox.

Items in the encrypted local data store are identified with a string. All items are stored as byte array data.



Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Métodos Públicos
 MétodoDefinido por
  
[static] Returns the data for the item with the given name in the local encrypted data store.
EncryptedLocalStore
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
[static] Removes the item with the given name in the local encrypted data store.
EncryptedLocalStore
  
[static]
EncryptedLocalStore
  
[static] Sets the item with a given name to the provided byte array data.
EncryptedLocalStore
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Detalhes do método
getItem()método
public static function getItem(name:String):ByteArray

Returns the data for the item with the given name in the local encrypted data store. If an item does not exist by the specified name, this method returns null.

Parâmetros

name:String — The name of the item in the local encrypted data store.

Retorna
ByteArray — The ByteArray data. If there is not data for the provided name, the method returns null.
removeItem()método 
public static function removeItem(name:String):void

Removes the item with the given name in the local encrypted data store.

Parâmetros

name:String — The name of the item in the local encrypted data store.

reset()método 
public static function reset():void
setItem()método 
public static function setItem(name:String, data:ByteArray):void

Sets the item with a given name to the provided byte array data.

Parâmetros

name:String — The name of the item in the local encrypted data store.
 
data:ByteArray — The data.