open class Keystore (source)
Manages data protection using a system-isolated cryptographic key.
This class provides for both:
- management for a specific crypto graphic key (identified by a string label)
- protection (encryption/decryption) of data using the managed key
The specific cryptographic properties are pre-chosen to be the following:
- Algorithm is “AES/GCM/NoPadding”
- Key size is 256 bits
- Tag size is 128 bits
Creates a new instance around a key identified by the given label
The label the cryptographic key is identified as
Determines if the managed key is available for use. Consumers can use this to determine if the key was somehow lost and should treat any previously-protected data as invalid.
Create a cipher initialized for decrypting data with the managed key.
Create a cipher initialized for encrypting data with the managed key.
Decrypts data using the managed key.
Deletes the managed key.
Encrypts data using the managed key.
Generates the managed key if it does not already exist.
Loads a file from the resources folder and returns its content as a string object.