Class: Google::Apis::IamcredentialsV1::SignBlobResponse
- Inherits:
-
Object
- Object
- Google::Apis::IamcredentialsV1::SignBlobResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/iamcredentials_v1/classes.rb,
generated/google/apis/iamcredentials_v1/representations.rb,
generated/google/apis/iamcredentials_v1/representations.rb
Instance Attribute Summary collapse
-
#key_id ⇒ String
The ID of the key used to sign the blob.
-
#signed_blob ⇒ String
The signature for the blob.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SignBlobResponse
constructor
A new instance of SignBlobResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SignBlobResponse
Returns a new instance of SignBlobResponse.
214 215 216 |
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 214 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key_id ⇒ String
The ID of the key used to sign the blob. The key used for signing will remain
valid for at least 12 hours after the blob is signed. To verify the signature,
you can retrieve the public key in several formats from the following
endpoints: - RSA public key wrapped in an X.509 v3 certificate: https://www.
googleapis.com/service_accounts/v1/metadata/x509/
ACCOUNT_EMAIL- Raw key in
JSON format: `https://www.googleapis.com/service_accounts/v1/metadata/raw/`
ACCOUNT_EMAIL
- JSON Web Key (JWK): https://www.googleapis.com/
service_accounts/v1/metadata/jwk/
ACCOUNT_EMAIL`
Corresponds to the JSON property
keyId`
203 204 205 |
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 203 def key_id @key_id end |
#signed_blob ⇒ String
The signature for the blob. Does not include the original blob. After the key
pair referenced by the key_id
response field expires, Google no longer
exposes the public key that can be used to verify the blob. As a result, the
receiver can no longer verify the signature.
Corresponds to the JSON property signedBlob
NOTE: Values are automatically base64 encoded/decoded in the client library.
212 213 214 |
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 212 def signed_blob @signed_blob end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
219 220 221 222 |
# File 'generated/google/apis/iamcredentials_v1/classes.rb', line 219 def update!(**args) @key_id = args[:key_id] if args.key?(:key_id) @signed_blob = args[:signed_blob] if args.key?(:signed_blob) end |