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.



654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'proto_docs/google/cloud/security/privateca/v1beta1/resources.rb', line 654

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:



654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
# File 'proto_docs/google/cloud/security/privateca/v1beta1/resources.rb', line 654

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