keyForSigning (property)

Whether the CMK is for signing or encryption.

Syntax

- (BOOL)keyForSigning:(int)keyIndex;
public func keyForSigning(keyIndex: Int32) throws -> Bool

Default Value

FALSE

Remarks

Whether the CMK is for signing or encryption.

This property reflects whether the CMK's usage is signing/verification (true) or encryption/decryption (false).

A CMK's usage determines which cryptographic operations it can be used for. For example, a CMK with signing/verification usage can be used for Sign and Verify operations, but not for Encrypt, Decrypt or ReEncrypt operations.

The KeyIndex parameter specifies the index of the item in the array. The size of the array is controlled by the KeyCount property.

This property is read-only.

Copyright (c) 2022 /n software inc. - All rights reserved.
Cloud Keys 2020 iOS Edition - Version 20.0 [Build 8157]