Class: Google::Apis::StsV1::GoogleIdentityStsV1Jwk

Inherits:
Object
  • Object
show all
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

A JSON web key set (JWK) See also https://datatracker.ietf.org/doc/html/ rfc7517 and https://github.com/spiffe/spiffe/blob/main/standards/JWT-SVID.md#6- representation-in-the-spiffe-bundle

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleIdentityStsV1Jwk

Returns a new instance of GoogleIdentityStsV1Jwk.



446
447
448
# File 'lib/google/apis/sts_v1/classes.rb', line 446

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

Instance Attribute Details

#eString

Exponent value for kty="RSA". Corresponds to the JSON property e

Returns:

  • (String)


424
425
426
# File 'lib/google/apis/sts_v1/classes.rb', line 424

def e
  @e
end

#kidString

Key ID. Corresponds to the JSON property kid

Returns:

  • (String)


429
430
431
# File 'lib/google/apis/sts_v1/classes.rb', line 429

def kid
  @kid
end

#ktyString

Key type. Currently "RSA". Corresponds to the JSON property kty

Returns:

  • (String)


434
435
436
# File 'lib/google/apis/sts_v1/classes.rb', line 434

def kty
  @kty
end

#nString

Modulus value for kty="RSA". Corresponds to the JSON property n

Returns:

  • (String)


439
440
441
# File 'lib/google/apis/sts_v1/classes.rb', line 439

def n
  @n
end

#useString

Public key use. Currently "jwt-svid". Corresponds to the JSON property use

Returns:

  • (String)


444
445
446
# File 'lib/google/apis/sts_v1/classes.rb', line 444

def use
  @use
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



451
452
453
454
455
456
457
# File 'lib/google/apis/sts_v1/classes.rb', line 451

def update!(**args)
  @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