| 1 | |||
| 2 | package Paws::KMS::GetPublicKeyResponse; | ||
| 3 | use Moose; | ||
| 4 | has CustomerMasterKeySpec => (is => 'ro', isa => 'Str'); | ||
| 5 | has EncryptionAlgorithms => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 6 | has KeyId => (is => 'ro', isa => 'Str'); | ||
| 7 | has KeyUsage => (is => 'ro', isa => 'Str'); | ||
| 8 | has PublicKey => (is => 'ro', isa => 'Str'); | ||
| 9 | has SigningAlgorithms => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); | ||
| 10 | |||
| 11 | has _request_id => (is => 'ro', isa => 'Str'); | ||
| 12 | |||
| 13 | ### main pod documentation begin ### | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Paws::KMS::GetPublicKeyResponse | ||
| 18 | |||
| 19 | =head1 ATTRIBUTES | ||
| 20 | |||
| 21 | |||
| 22 | =head2 CustomerMasterKeySpec => Str | ||
| 23 | |||
| 24 | The type of the of the public key that was downloaded. | ||
| 25 | |||
| 26 | Valid values are: C<"RSA_2048">, C<"RSA_3072">, C<"RSA_4096">, C<"ECC_NIST_P256">, C<"ECC_NIST_P384">, C<"ECC_NIST_P521">, C<"ECC_SECG_P256K1">, C<"SYMMETRIC_DEFAULT"> | ||
| 27 | =head2 EncryptionAlgorithms => ArrayRef[Str|Undef] | ||
| 28 | |||
| 29 | The encryption algorithms that AWS KMS supports for this key. | ||
| 30 | |||
| 31 | This information is critical. If a public key encrypts data outside of | ||
| 32 | AWS KMS by using an unsupported encryption algorithm, the ciphertext | ||
| 33 | cannot be decrypted. | ||
| 34 | |||
| 35 | This field appears in the response only when the C<KeyUsage> of the | ||
| 36 | public key is C<ENCRYPT_DECRYPT>. | ||
| 37 | |||
| 38 | |||
| 39 | =head2 KeyId => Str | ||
| 40 | |||
| 41 | The Amazon Resource Name (key ARN | ||
| 42 | (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN)) | ||
| 43 | of the asymmetric CMK from which the public key was downloaded. | ||
| 44 | |||
| 45 | |||
| 46 | =head2 KeyUsage => Str | ||
| 47 | |||
| 48 | The permitted use of the public key. Valid values are | ||
| 49 | C<ENCRYPT_DECRYPT> or C<SIGN_VERIFY>. | ||
| 50 | |||
| 51 | This information is critical. If a public key with C<SIGN_VERIFY> key | ||
| 52 | usage encrypts data outside of AWS KMS, the ciphertext cannot be | ||
| 53 | decrypted. | ||
| 54 | |||
| 55 | Valid values are: C<"SIGN_VERIFY">, C<"ENCRYPT_DECRYPT"> | ||
| 56 | =head2 PublicKey => Str | ||
| 57 | |||
| 58 | The exported public key. | ||
| 59 | |||
| 60 | The value is a DER-encoded X.509 public key, also known as | ||
| 61 | C<SubjectPublicKeyInfo> (SPKI), as defined in RFC 5280 | ||
| 62 | (https://tools.ietf.org/html/rfc5280). When you use the HTTP API or the | ||
| 63 | AWS CLI, the value is Base64-encoded. Otherwise, it is not | ||
| 64 | Base64-encoded. | ||
| 65 | |||
| 66 | |||
| 67 | =head2 SigningAlgorithms => ArrayRef[Str|Undef] | ||
| 68 | |||
| 69 | The signing algorithms that AWS KMS supports for this key. | ||
| 70 | |||
| 71 | This field appears in the response only when the C<KeyUsage> of the | ||
| 72 | public key is C<SIGN_VERIFY>. | ||
| 73 | |||
| 74 | |||
| 75 | =head2 _request_id => Str | ||
| 76 | |||
| 77 | |||
| 78 | =cut | ||
| 79 | |||
| 80 | 1; |