Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaJwt

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaJwt

Returns a new instance of GoogleCloudIntegrationsV1alphaJwt.



7152
7153
7154
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7152

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#jwtString

The token calculated by the header, payload and signature. Corresponds to the JSON property jwt

Returns:

  • (String)


7133
7134
7135
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7133

def jwt
  @jwt
end

#jwt_headerString

Identifies which algorithm is used to generate the signature. Corresponds to the JSON property jwtHeader

Returns:

  • (String)


7138
7139
7140
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7138

def jwt_header
  @jwt_header
end

#jwt_payloadString

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

Returns:

  • (String)


7145
7146
7147
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7145

def jwt_payload
  @jwt_payload
end

#secretString

User's pre-shared secret to sign the token. Corresponds to the JSON property secret

Returns:

  • (String)


7150
7151
7152
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7150

def secret
  @secret
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7157
7158
7159
7160
7161
7162
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 7157

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