GetPublicKeyResponse
public struct GetPublicKeyResponse : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
The type of the of the public key that was downloaded.
Declaration
Swift
public let customerMasterKeySpec: CustomerMasterKeySpec?
-
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
Swift
public let encryptionAlgorithms: [EncryptionAlgorithmSpec]?
-
The Amazon Resource Name (key ARN) of the asymmetric CMK from which the public key was downloaded.
Declaration
Swift
public let keyId: String?
-
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
Swift
public let keyUsage: KeyUsageType?
-
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
Swift
public let publicKey: Data?
-
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
Swift
public let signingAlgorithms: [SigningAlgorithmSpec]?
-
Undocumented
Declaration
Swift
public init(customerMasterKeySpec: CustomerMasterKeySpec? = nil, encryptionAlgorithms: [EncryptionAlgorithmSpec]? = nil, keyId: String? = nil, keyUsage: KeyUsageType? = nil, publicKey: Data? = nil, signingAlgorithms: [SigningAlgorithmSpec]? = nil)