AWSKMSGetPublicKeyResponse

@interface AWSKMSGetPublicKeyResponse
  • The type of the of the public key that was downloaded.

    Declaration

    Objective-C

    @property (assign, readwrite, 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 is ENCRYPT_DECRYPT.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSArray<NSString *> *_Nullable encryptionAlgorithms;

    Swift

    var encryptionAlgorithms: [String]? { get set }
  • The identifier of the asymmetric CMK from which the public key was downloaded.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable keyId;

    Swift

    var keyId: String? { get set }
  • The permitted use of the public key. Valid values are ENCRYPT_DECRYPT or SIGN_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 (assign, readwrite, 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 (readwrite, strong, nonatomic) 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 is SIGN_VERIFY.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSArray<NSString *> *_Nullable signingAlgorithms;

    Swift

    var signingAlgorithms: [String]? { get set }