Class GetPublicKeyResult


  • public final class GetPublicKeyResult
    extends java.lang.Object
    • Method Detail

      • arn

        public java.lang.String arn()
        Returns:
        Key ARN of the asymmetric CMK from which the public key was downloaded.
      • customerMasterKeySpec

        public java.lang.String customerMasterKeySpec()
        Returns:
        Type of the public key that was downloaded.
      • encryptionAlgorithms

        public java.util.List<java.lang.String> encryptionAlgorithms()
        Returns:
        Encryption algorithms that AWS KMS supports for this key. Only set when the `keyUsage` of the public key is `ENCRYPT_DECRYPT`.
      • grantTokens

        public java.util.List<java.lang.String> grantTokens()
      • id

        public java.lang.String id()
        Returns:
        The provider-assigned unique ID for this managed resource.
      • keyId

        public java.lang.String keyId()
      • keyUsage

        public java.lang.String keyUsage()
        Returns:
        Permitted use of the public key. Valid values are `ENCRYPT_DECRYPT` or `SIGN_VERIFY`
      • publicKey

        public java.lang.String publicKey()
        Returns:
        Exported public key. The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI), as defined in [RFC 5280](https://tools.ietf.org/html/rfc5280). The value is Base64-encoded.
      • publicKeyPem

        public java.lang.String publicKeyPem()
        Returns:
        Exported public key. The value is Privacy Enhanced Mail (PEM) encoded.
      • region

        public java.lang.String region()
      • signingAlgorithms

        public java.util.List<java.lang.String> signingAlgorithms()
        Returns:
        Signing algorithms that AWS KMS supports for this key. Only set when the `keyUsage` of the public key is `SIGN_VERIFY`.