| Pacote | flash.data |
| Classe | public class EncryptedLocalStore |
| Herança | EncryptedLocalStore Object |
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.
| Método | Definido por | ||
|---|---|---|---|
|
[static]
Returns the data for the item with the given name in the local encrypted data store.
| EncryptedLocalStore | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
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 | ||
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| 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.
|
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.
|