Class: Aws::KMS::Types::GetPublicKeyResponse
- Inherits:
-
Struct
- Object
- Struct
- Aws::KMS::Types::GetPublicKeyResponse
- Defined in:
- gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#customer_master_key_spec ⇒ String
Instead, use the
KeySpecfield in theGetPublicKeyresponse. -
#encapsulation_algorithms ⇒ Array<String>
The key encapsulation algorithm used to establish a shared secret.
-
#encryption_algorithms ⇒ Array<String>
The encryption algorithms that KMS supports for this key.
-
#key_agreement_algorithms ⇒ Array<String>
The key agreement algorithm used to derive a shared secret.
-
#key_id ⇒ String
The Amazon Resource Name ([key ARN][1]) of the asymmetric KMS key from which the public key was downloaded.
-
#key_spec ⇒ String
The type of the of the public key that was downloaded.
-
#key_usage ⇒ String
The permitted use of the public key.
-
#public_key ⇒ String
The exported public key.
-
#signing_algorithms ⇒ Array<String>
The signing algorithms that KMS supports for this key.
Instance Attribute Details
#customer_master_key_spec ⇒ String
Instead, use the KeySpec field in the GetPublicKey response.
The KeySpec and CustomerMasterKeySpec fields have the same
value. We recommend that you use the KeySpec field in your code.
However, to avoid breaking changes, KMS supports both fields.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |
#encapsulation_algorithms ⇒ Array<String>
The key encapsulation algorithm used to establish a shared secret.
This field is present only when the KMS key has a KeyUsage value
of ENCAPSULATE_DECAPSULATE.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |
#encryption_algorithms ⇒ Array<String>
The encryption algorithms that KMS supports for this key.
This information is critical. If a public key encrypts data outside of 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.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |
#key_agreement_algorithms ⇒ Array<String>
The key agreement algorithm used to derive a shared secret. This
field is present only when the KMS key has a KeyUsage value of
KEY_AGREEMENT.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |
#key_id ⇒ String
The Amazon Resource Name (key ARN) of the asymmetric KMS key from which the public key was downloaded.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |
#key_spec ⇒ String
The type of the of the public key that was downloaded.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |
#key_usage ⇒ String
The permitted use of the public key. Valid values for asymmetric key
pairs are ENCRYPT_DECRYPT, SIGN_VERIFY, and KEY_AGREEMENT.
This information is critical. For example, if a public key with
SIGN_VERIFY key usage encrypts data outside of KMS, the ciphertext
cannot be decrypted.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |
#public_key ⇒ String
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 Amazon Web Services CLI, the value is
Base64-encoded. Otherwise, it is not Base64-encoded.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |
#signing_algorithms ⇒ Array<String>
The signing algorithms that KMS supports for this key.
This field appears in the response only when the KeyUsage of the
public key is SIGN_VERIFY.
4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 |
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4135 class GetPublicKeyResponse < Struct.new( :key_id, :public_key, :customer_master_key_spec, :key_spec, :key_usage, :encryption_algorithms, :signing_algorithms, :key_agreement_algorithms, :encapsulation_algorithms) SENSITIVE = [] include Aws::Structure end |