AWSKMSGetPublicKeyResponse
Objective-C
@interface AWSKMSGetPublicKeyResponse
Swift
class AWSKMSGetPublicKeyResponse
-
The type of the of the public key that was downloaded.
Declaration
Objective-C
@property (nonatomic) AWSKMSCustomerMasterKeySpec customerMasterKeySpec;
Swift
var customerMasterKeySpec: AWSKMSCustomerMasterKeySpec { get set }
-
The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the
KeyUsage
of the public key isENCRYPT_DECRYPT
.Declaration
Objective-C
@property (nonatomic, strong) NSArray<NSString *> *_Nullable encryptionAlgorithms;
Swift
var encryptionAlgorithms: [String]? { get set }
-
The Amazon Resource Name (key ARN) of the asymmetric CMK from which the public key was downloaded.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable keyId;
Swift
var keyId: String? { get set }
-
The permitted use of the public key. Valid values are
ENCRYPT_DECRYPT
orSIGN_VERIFY
.This information is critical. If a public key with
SIGN_VERIFY
key usage encrypts data outside of AWS KMS, the ciphertext cannot be decrypted.Declaration
Objective-C
@property (nonatomic) AWSKMSKeyUsageType keyUsage;
Swift
var keyUsage: AWSKMSKeyUsageType { get set }
-
The exported public key.
The value is a DER-encoded X.509 public key, also known as
SubjectPublicKeyInfo
(SPKI), as defined in RFC 5280. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.Declaration
Objective-C
@property (nonatomic, strong) NSData *_Nullable publicKey;
Swift
var publicKey: Data? { get set }
-
The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the
KeyUsage
of the public key isSIGN_VERIFY
.Declaration
Objective-C
@property (nonatomic, strong) NSArray<NSString *> *_Nullable signingAlgorithms;
Swift
var signingAlgorithms: [String]? { get set }