CloudSecureArea

An implementation of SecureArea using a Secure Area managed by an external server.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val displayName: String

The name of the Secure Area, suitable for displaying to the end user.

Link copied to clipboard
override val identifier: String

A stable identifier for the Secure Area.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val supportedAlgorithms: List<Algorithm>

The list of algorithms the Secure Area supports.

Functions

Link copied to clipboard
open suspend override fun batchCreateKey(numKeys: Int, createKeySettings: CreateKeySettings): BatchCreateKeyResult

Creates a batch of new keys.

Link copied to clipboard
open suspend fun communicateLowlevel(endpointUri: String, requestData: ByteArray): Pair<Int, ByteArray>
Link copied to clipboard
open suspend override fun createKey(alias: String?, createKeySettings: CreateKeySettings): CloudKeyInfo

Creates a new key.

Link copied to clipboard
open suspend override fun deleteKey(alias: String)

Deletes a previously created key.

Link copied to clipboard
open suspend override fun getKeyInfo(alias: String): CloudKeyInfo

Gets information about a key.

Link copied to clipboard
open suspend override fun getKeyInvalidated(alias: String): Boolean

Checks whether the key has been invalidated.

Link copied to clipboard

The PassphraseConstraints configured at registration time.

Link copied to clipboard
open suspend override fun keyAgreement(alias: String, otherKey: EcPublicKey, keyUnlockData: KeyUnlockData?): ByteArray

Performs Key Agreement.

Link copied to clipboard
suspend fun register(passphrase: String, passphraseConstraints: PassphraseConstraints, onAuthorizeRootOfTrust: (cloudSecureAreaRootOfTrust: X509Cert) -> Boolean)

Registers with the cloud secure area.

Link copied to clipboard
open suspend override fun sign(alias: String, dataToSign: ByteArray, keyUnlockData: KeyUnlockData?): EcSignature

Signs data with a key.

Link copied to clipboard
suspend fun unregister()