CryptoKey

class CryptoKey(var keyId: String)

Helper class to generate and sign the keys

Constructors

Link copied to clipboard
constructor(keyId: String)

Properties

Link copied to clipboard
private val androidKeyStore: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private var keyId: String
Link copied to clipboard
val keySize: Int = 2048
Link copied to clipboard
private val purpose: Int
Link copied to clipboard
Link copied to clipboard
val timeout: Int = 5

Functions

Link copied to clipboard
fun createKeyPair(spec: AlgorithmParameterSpec, useAndroidKeyStore: Boolean = true): KeyPair

Creates Keypair for the given builder

Link copied to clipboard

Delete keys from Android KeyStore

Link copied to clipboard

Get the Certificate chain

Link copied to clipboard
private fun getKeyAlias(keyName: String = keyId): String

get hash for the given user

Link copied to clipboard
private fun getKeyStore(type: String = androidKeyStore): KeyStore

Creates centralised SecretKey using the KeyStore

Link copied to clipboard

Get the private key from the Keypair for the given builder

Link copied to clipboard

Builder to create a keypair