Class: Google::Apis::StsV1::GoogleIdentityStsV1ExchangeTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::StsV1::GoogleIdentityStsV1ExchangeTokenResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sts_v1/classes.rb,
lib/google/apis/sts_v1/representations.rb,
lib/google/apis/sts_v1/representations.rb
Overview
Response message for ExchangeToken.
Instance Attribute Summary collapse
-
#access_boundary_session_key ⇒ String
The access boundary session key.
-
#access_token ⇒ String
An OAuth 2.0 security token, issued by Google, in response to the token exchange request.
-
#expires_in ⇒ Fixnum
The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire.
-
#issued_token_type ⇒ String
The token type.
-
#token_type ⇒ String
The type of access token.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIdentityStsV1ExchangeTokenResponse
constructor
A new instance of GoogleIdentityStsV1ExchangeTokenResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleIdentityStsV1ExchangeTokenResponse
Returns a new instance of GoogleIdentityStsV1ExchangeTokenResponse.
399 400 401 |
# File 'lib/google/apis/sts_v1/classes.rb', line 399 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_boundary_session_key ⇒ String
The access boundary session key. This key is used along with the access
boundary intermediary token to generate Credential Access Boundary tokens at
client side. This field is absent when the requested_token_type from the
request is not urn:ietf:params:oauth:token-type:
access_boundary_intermediary_token.
Corresponds to the JSON property access_boundary_session_key
NOTE: Values are automatically base64 encoded/decoded in the client library.
369 370 371 |
# File 'lib/google/apis/sts_v1/classes.rb', line 369 def access_boundary_session_key @access_boundary_session_key end |
#access_token ⇒ String
An OAuth 2.0 security token, issued by Google, in response to the token
exchange request. Tokens can vary in size, depending in part on the size of
mapped claims, up to a maximum of 12288 bytes (12 KB). Google reserves the
right to change the token size and the maximum length at any time.
Corresponds to the JSON property access_token
377 378 379 |
# File 'lib/google/apis/sts_v1/classes.rb', line 377 def access_token @access_token end |
#expires_in ⇒ Fixnum
The amount of time, in seconds, between the time when the access token was
issued and the time when the access token will expire. This field is absent
when the subject_token in the request is a a short-lived access token for a
Cloud Identity or Google Workspace user account. In this case, the access
token has the same expiration time as the subject_token.
Corresponds to the JSON property expires_in
386 387 388 |
# File 'lib/google/apis/sts_v1/classes.rb', line 386 def expires_in @expires_in end |
#issued_token_type ⇒ String
The token type. Always matches the value of requested_token_type from the
request.
Corresponds to the JSON property issued_token_type
392 393 394 |
# File 'lib/google/apis/sts_v1/classes.rb', line 392 def issued_token_type @issued_token_type end |
#token_type ⇒ String
The type of access token. Always has the value Bearer.
Corresponds to the JSON property token_type
397 398 399 |
# File 'lib/google/apis/sts_v1/classes.rb', line 397 def token_type @token_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
404 405 406 407 408 409 410 |
# File 'lib/google/apis/sts_v1/classes.rb', line 404 def update!(**args) @access_boundary_session_key = args[:access_boundary_session_key] if args.key?(:access_boundary_session_key) @access_token = args[:access_token] if args.key?(:access_token) @expires_in = args[:expires_in] if args.key?(:expires_in) @issued_token_type = args[:issued_token_type] if args.key?(:issued_token_type) @token_type = args[:token_type] if args.key?(:token_type) end |