Class: Google::Apis::BinaryauthorizationV1beta1::PkixPublicKey
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1beta1::PkixPublicKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/binaryauthorization_v1beta1/classes.rb,
generated/google/apis/binaryauthorization_v1beta1/representations.rb,
generated/google/apis/binaryauthorization_v1beta1/representations.rb
Overview
A public key in the PkixPublicKey format (see https://tools.ietf.org/html/ rfc5280#section-4.1.2.7 for details). Public keys of this type are typically textually encoded using the PEM format.
Instance Attribute Summary collapse
-
#public_key_pem ⇒ String
A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468# section-13 Corresponds to the JSON property
publicKeyPem
. -
#signature_algorithm ⇒ String
The signature algorithm used to verify a message against a signature using this key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PkixPublicKey
constructor
A new instance of PkixPublicKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PkixPublicKey
Returns a new instance of PkixPublicKey.
518 519 520 |
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 518 def initialize(**args) update!(**args) end |
Instance Attribute Details
#public_key_pem ⇒ String
A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#
section-13
Corresponds to the JSON property publicKeyPem
508 509 510 |
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 508 def public_key_pem @public_key_pem end |
#signature_algorithm ⇒ String
The signature algorithm used to verify a message against a signature using
this key. These signature algorithm must match the structure and any object
identifiers encoded in public_key_pem
(i.e. this algorithm must match that
of the public key).
Corresponds to the JSON property signatureAlgorithm
516 517 518 |
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 516 def signature_algorithm @signature_algorithm end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
523 524 525 526 |
# File 'generated/google/apis/binaryauthorization_v1beta1/classes.rb', line 523 def update!(**args) @public_key_pem = args[:public_key_pem] if args.key?(:public_key_pem) @signature_algorithm = args[:signature_algorithm] if args.key?(:signature_algorithm) end |