class Google::Apis::PrivatecaV1beta1::PublicKey

A PublicKey describes a public key.

Attributes

key[RW]

Required. A public key. When this is specified in a request, the padding and encoding can be any of the options described by the respective 'KeyType' value. When this is generated by the service, it will always be an RFC 5280 [ SubjectPublicKeyInfo](tools.ietf.org/html/rfc5280#section-4.1) structure containing an algorithm identifier and a key. Corresponds to the JSON property `key` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

type[RW]

Optional. The type of public key. If specified, it must match the public key used for the`key` field. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/privateca_v1beta1/classes.rb, line 1759
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/privateca_v1beta1/classes.rb, line 1764
def update!(**args)
  @key = args[:key] if args.key?(:key)
  @type = args[:type] if args.key?(:type)
end