Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1OpenIdConnectKey

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/identitytoolkit_v1/classes.rb,
lib/google/apis/identitytoolkit_v1/representations.rb,
lib/google/apis/identitytoolkit_v1/representations.rb

Overview

Represents a public key of the session cookie signer, formatted as a JSON Web Key (JWK).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1OpenIdConnectKey

Returns a new instance of GoogleCloudIdentitytoolkitV1OpenIdConnectKey.



1469
1470
1471
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1469

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

Instance Attribute Details

#algString

Signature algorithm. Corresponds to the JSON property alg

Returns:

  • (String)


1440
1441
1442
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1440

def alg
  @alg
end

#eString

Exponent for the RSA public key, it is represented as the base64url encoding of the value's big endian representation. Corresponds to the JSON property e

Returns:

  • (String)


1446
1447
1448
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1446

def e
  @e
end

#kidString

Unique string to identify this key. Corresponds to the JSON property kid

Returns:

  • (String)


1451
1452
1453
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1451

def kid
  @kid
end

#ktyString

Key type. Corresponds to the JSON property kty

Returns:

  • (String)


1456
1457
1458
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1456

def kty
  @kty
end

#nString

Modulus for the RSA public key, it is represented as the base64url encoding of the value's big endian representation. Corresponds to the JSON property n

Returns:

  • (String)


1462
1463
1464
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1462

def n
  @n
end

#useString

Key use. Corresponds to the JSON property use

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1467

def use
  @use
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1474
1475
1476
1477
1478
1479
1480
1481
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1474

def update!(**args)
  @alg = args[:alg] if args.key?(:alg)
  @e = args[:e] if args.key?(:e)
  @kid = args[:kid] if args.key?(:kid)
  @kty = args[:kty] if args.key?(:kty)
  @n = args[:n] if args.key?(:n)
  @use = args[:use] if args.key?(:use)
end