Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaJwt
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaJwt
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/representations.rb
Overview
Represents JSON web token(JWT), which is a compact, URL-safe means of representing claims to be transferred between two parties, enabling the claims to be digitally signed or integrity protected.
Instance Attribute Summary collapse
-
#jwt ⇒ String
The token calculated by the header, payload and signature.
-
#jwt_header ⇒ String
Identifies which algorithm is used to generate the signature.
-
#jwt_payload ⇒ String
Contains a set of claims.
-
#secret ⇒ String
User's pre-shared secret to sign the token.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaJwt
constructor
A new instance of GoogleCloudIntegrationsV1alphaJwt.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaJwt
Returns a new instance of GoogleCloudIntegrationsV1alphaJwt.
7410 7411 7412 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 7410 def initialize(**args) update!(**args) end |
Instance Attribute Details
#jwt ⇒ String
The token calculated by the header, payload and signature.
Corresponds to the JSON property jwt
7391 7392 7393 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 7391 def jwt @jwt end |
#jwt_header ⇒ String
Identifies which algorithm is used to generate the signature.
Corresponds to the JSON property jwtHeader
7396 7397 7398 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 7396 def jwt_header @jwt_header end |
#jwt_payload ⇒ String
Contains a set of claims. The JWT specification defines seven Registered Claim
Names which are the standard fields commonly included in tokens. Custom claims
are usually also included, depending on the purpose of the token.
Corresponds to the JSON property jwtPayload
7403 7404 7405 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 7403 def jwt_payload @jwt_payload end |
#secret ⇒ String
User's pre-shared secret to sign the token.
Corresponds to the JSON property secret
7408 7409 7410 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 7408 def secret @secret end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7415 7416 7417 7418 7419 7420 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 7415 def update!(**args) @jwt = args[:jwt] if args.key?(:jwt) @jwt_header = args[:jwt_header] if args.key?(:jwt_header) @jwt_payload = args[:jwt_payload] if args.key?(:jwt_payload) @secret = args[:secret] if args.key?(:secret) end |