Binary Authorization V1 API - Class Google::Cloud::BinaryAuthorization::V1::PkixPublicKey (v1.8.0)

Reference documentation and code samples for the Binary Authorization V1 API class Google::Cloud::BinaryAuthorization::V1::PkixPublicKey.

A public key in the PkixPublicKey format. Public keys of this type are typically textually encoded using the PEM format.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#key_id

def key_id() -> ::String
Returns
  • (::String) — Optional. The ID of this public key. Signatures verified by Binary Authorization must include the ID of the public key that can be used to verify them. The ID must match exactly contents of the key_id field exactly.

    The ID may be explicitly provided by the caller, but it MUST be a valid RFC3986 URI. If key_id is left blank and this PkixPublicKey is not used in the context of a wrapper (see next paragraph), a default key ID will be computed based on the digest of the DER encoding of the public key.

    If this PkixPublicKey is used in the context of a wrapper that has its own notion of key ID (e.g. AttestorPublicKey), then this field can either match that value exactly, or be left blank, in which case it behaves exactly as though it is equal to that wrapper value.

#key_id=

def key_id=(value) -> ::String
Parameter
  • value (::String) — Optional. The ID of this public key. Signatures verified by Binary Authorization must include the ID of the public key that can be used to verify them. The ID must match exactly contents of the key_id field exactly.

    The ID may be explicitly provided by the caller, but it MUST be a valid RFC3986 URI. If key_id is left blank and this PkixPublicKey is not used in the context of a wrapper (see next paragraph), a default key ID will be computed based on the digest of the DER encoding of the public key.

    If this PkixPublicKey is used in the context of a wrapper that has its own notion of key ID (e.g. AttestorPublicKey), then this field can either match that value exactly, or be left blank, in which case it behaves exactly as though it is equal to that wrapper value.

Returns
  • (::String) — Optional. The ID of this public key. Signatures verified by Binary Authorization must include the ID of the public key that can be used to verify them. The ID must match exactly contents of the key_id field exactly.

    The ID may be explicitly provided by the caller, but it MUST be a valid RFC3986 URI. If key_id is left blank and this PkixPublicKey is not used in the context of a wrapper (see next paragraph), a default key ID will be computed based on the digest of the DER encoding of the public key.

    If this PkixPublicKey is used in the context of a wrapper that has its own notion of key ID (e.g. AttestorPublicKey), then this field can either match that value exactly, or be left blank, in which case it behaves exactly as though it is equal to that wrapper value.

#public_key_pem

def public_key_pem() -> ::String
Returns
  • (::String) — A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

#public_key_pem=

def public_key_pem=(value) -> ::String
Parameter
  • value (::String) — A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13
Returns
  • (::String) — A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

#signature_algorithm

def signature_algorithm() -> ::Google::Cloud::BinaryAuthorization::V1::PkixPublicKey::SignatureAlgorithm
Returns

#signature_algorithm=

def signature_algorithm=(value) -> ::Google::Cloud::BinaryAuthorization::V1::PkixPublicKey::SignatureAlgorithm
Parameter
Returns