Class: Google::Cloud::Security::PrivateCA::V1::PublicKey

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

Overview

A PublicKey describes a public key.

Defined Under Namespace

Modules: KeyFormat

Instance Attribute Summary collapse

Instance Attribute Details

#format::Google::Cloud::Security::PrivateCA::V1::PublicKey::KeyFormat

Returns Required. The format of the public key.

Returns:



1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'proto_docs/google/cloud/security/privateca/v1/resources.rb', line 1003

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

  # Types of public keys formats that are supported. Currently, only `PEM`
  # format is supported.
  module KeyFormat
    # Default unspecified value.
    KEY_FORMAT_UNSPECIFIED = 0

    # The key is PEM-encoded as defined in [RFC
    # 7468](https://tools.ietf.org/html/rfc7468). It can be any of the
    # following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
    # structure, an RFC 5280
    # [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
    # or a PEM-encoded X.509 certificate signing request (CSR). If a
    # [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
    # is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
    # or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified,
    # it will used solely for the purpose of extracting the public key. When
    # generated by the service, it will always be an RFC 5280
    # [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
    # structure containing an algorithm identifier and a key.
    PEM = 1
  end
end

#key::String

Returns Required. A public key. The padding and encoding must match with the KeyFormat value specified for the format field.

Returns:

  • (::String)

    Required. A public key. The padding and encoding must match with the KeyFormat value specified for the format field.



1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
# File 'proto_docs/google/cloud/security/privateca/v1/resources.rb', line 1003

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

  # Types of public keys formats that are supported. Currently, only `PEM`
  # format is supported.
  module KeyFormat
    # Default unspecified value.
    KEY_FORMAT_UNSPECIFIED = 0

    # The key is PEM-encoded as defined in [RFC
    # 7468](https://tools.ietf.org/html/rfc7468). It can be any of the
    # following: a PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
    # structure, an RFC 5280
    # [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
    # or a PEM-encoded X.509 certificate signing request (CSR). If a
    # [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
    # is specified, it can contain a A PEM-encoded PKCS#1/RFC 3447 RSAPublicKey
    # or a NIST P-256/secp256r1/prime256v1 or P-384 key. If a CSR is specified,
    # it will used solely for the purpose of extracting the public key. When
    # generated by the service, it will always be an RFC 5280
    # [SubjectPublicKeyInfo](https://tools.ietf.org/html/rfc5280#section-4.1)
    # structure containing an algorithm identifier and a key.
    PEM = 1
  end
end