Class: Google::Apis::IamcredentialsV1::SignJwtResponse
- Inherits:
-
Object
- Object
- Google::Apis::IamcredentialsV1::SignJwtResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iamcredentials_v1/classes.rb,
lib/google/apis/iamcredentials_v1/representations.rb,
lib/google/apis/iamcredentials_v1/representations.rb
Instance Attribute Summary collapse
-
#key_id ⇒ String
The ID of the key used to sign the JWT.
-
#signed_jwt ⇒ String
The signed JWT.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SignJwtResponse
constructor
A new instance of SignJwtResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SignJwtResponse
Returns a new instance of SignJwtResponse.
290 291 292 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key_id ⇒ String
The ID of the key used to sign the JWT. The key used for signing will remain
valid for at least 12 hours after the JWT 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`
278 279 280 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 278 def key_id @key_id end |
#signed_jwt ⇒ String
The signed JWT. Contains the automatically generated header; the client-
supplied payload; and the signature, which is generated using the key
referenced by the kid
field in the header. 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 JWT. As a result, the receiver can no longer
verify the signature.
Corresponds to the JSON property signedJwt
288 289 290 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 288 def signed_jwt @signed_jwt end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
295 296 297 298 |
# File 'lib/google/apis/iamcredentials_v1/classes.rb', line 295 def update!(**args) @key_id = args[:key_id] if args.key?(:key_id) @signed_jwt = args[:signed_jwt] if args.key?(:signed_jwt) end |