Class: Google::Cloud::Security::PrivateCA::V1beta1::PublicKey

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/security/privateca/v1beta1/resources.rb

Overview

A PublicKey describes a public key.

Defined Under Namespace

Modules: KeyType

Instance Attribute Summary collapse

Instance Attribute Details

#key::String

Returns Required. A public key. Padding and encoding varies by 'KeyType' and is described along with the KeyType values.

Returns:

  • (::String)

    Required. A public key. Padding and encoding varies by 'KeyType' and is described along with the KeyType values.



634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
# File 'proto_docs/google/cloud/security/privateca/v1beta1/resources.rb', line 634

class PublicKey
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Types of public keys that are supported.
  # At a minimum, we support RSA and ECDSA, for the key sizes or curves listed:
  # https://cloud.google.com/kms/docs/algorithms#asymmetric_signing_algorithms
  module KeyType
    # Default unspecified value.
    KEY_TYPE_UNSPECIFIED = 0

    # A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure.
    PEM_RSA_KEY = 1

    # A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key.
    PEM_EC_KEY = 2
  end
end

#type::Google::Cloud::Security::PrivateCA::V1beta1::PublicKey::KeyType

Returns Required. The type of public key.

Returns:



634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
# File 'proto_docs/google/cloud/security/privateca/v1beta1/resources.rb', line 634

class PublicKey
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Types of public keys that are supported.
  # At a minimum, we support RSA and ECDSA, for the key sizes or curves listed:
  # https://cloud.google.com/kms/docs/algorithms#asymmetric_signing_algorithms
  module KeyType
    # Default unspecified value.
    KEY_TYPE_UNSPECIFIED = 0

    # A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure.
    PEM_RSA_KEY = 1

    # A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key.
    PEM_EC_KEY = 2
  end
end