forgerock-core
4.4.0
forgerock-core
/
org.forgerock.android.auth
/
AndroidMEncryptor
Android
MEncryptor
open
class
AndroidMEncryptor
:
AbstractSymmetricEncryptor
Provide data encryption and decryption for Android M device.
Inheritors
AndroidNEncryptor
Members
Constructors
Android
MEncryptor
Link copied to clipboard
constructor
(
@
NonNull
keyAlias
:
String
)
Properties
AES_GCM_NO_PADDING
Link copied to clipboard
private
val
AES_GCM_NO_PADDING
:
String
=
"AES/GCM/NOPADDING"
ANDROID_KEYSTORE
Link copied to clipboard
val
ANDROID_KEYSTORE
:
String
=
"AndroidKeyStore"
HMAC_SHA256
Link copied to clipboard
private
val
HMAC_SHA256
:
String
=
"HmacSHA256"
IV_LENGTH
Link copied to clipboard
val
IV_LENGTH
:
Int
=
12
KEY_SIZE
Link copied to clipboard
val
KEY_SIZE
:
Int
=
256
key
Alias
Link copied to clipboard
val
keyAlias
:
String
spec
Builder
Link copied to clipboard
val
specBuilder
:
KeyGenParameterSpec.Builder
Functions
decrypt
Link copied to clipboard
open
fun
decrypt
(
encryptedData
:
Array
<
Byte
>
)
:
Array
<
Byte
>
Decrypts the data.
encrypt
Link copied to clipboard
open
fun
encrypt
(
@
NonNull
data
:
Array
<
Byte
>
)
:
Array
<
Byte
>
abstract
fun
encrypt
(
clearText
:
Array
<
Byte
>
)
:
Array
<
Byte
>
Encrypts the data.
get
Encryptor
Link copied to clipboard
open
fun
getEncryptor
(
context
:
Context
,
keyAlias
:
String
)
:
Encryptor
get
Key
Store
Link copied to clipboard
private
open
fun
getKeyStore
(
)
:
KeyStore
Retrieve and load the Android KeyStore
get
Secret
Key
Link copied to clipboard
protected
open
fun
getSecretKey
(
)
:
SecretKey
Retrieve the SecretKey.
init
Link copied to clipboard
open
fun
init
(
cipher
:
Cipher
)
:
Array
<
Byte
>
reset
Link copied to clipboard
open
fun
reset
(
)
Reset the Encryption Provider, remove all created keys