Interface ImportJob.WrappingPublicKeyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ImportJob.WrappingPublicKey, ImportJob.WrappingPublicKey.Builder
Enclosing class:
ImportJob

public static interface ImportJob.WrappingPublicKeyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    Output only.
    The public key, encoded in PEM format.
    com.google.protobuf.ByteString
    The public key, encoded in PEM format.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getPem

      String getPem()
       The public key, encoded in PEM format. For more information, see the [RFC
       7468](https://tools.ietf.org/html/rfc7468) sections for [General
       Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       This field gets populated by default for RSA-based import methods, if no
       public_key_format is specified in the request.
       If you want to retrieve the wrapping key of an
       [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       and set the public_key_format to the desired public key format.
       
      string pem = 1;
      Returns:
      The pem.
    • getPemBytes

      com.google.protobuf.ByteString getPemBytes()
       The public key, encoded in PEM format. For more information, see the [RFC
       7468](https://tools.ietf.org/html/rfc7468) sections for [General
       Considerations](https://tools.ietf.org/html/rfc7468#section-2) and
       [Textual Encoding of Subject Public Key Info]
       (https://tools.ietf.org/html/rfc7468#section-13).
       This field gets populated by default for RSA-based import methods, if no
       public_key_format is specified in the request.
       If you want to retrieve the wrapping key of an
       [ImportJob][google.cloud.kms.v1.ImportJob] in some other format, use
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       and set the public_key_format to the desired public key format.
       
      string pem = 1;
      Returns:
      The bytes for pem.
    • getData

      com.google.protobuf.ByteString getData()
       Output only. Contains the public key, formatted according to the
       [PublicKey.PublicKeyFormat][google.cloud.kms.v1.PublicKey.PublicKeyFormat]
       specified in the
       [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob]
       request.
       
      bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The data.