Class: Google::Apis::StsV1::GoogleIdentityStsV1Jwk
- Inherits:
-
Object
- Object
- Google::Apis::StsV1::GoogleIdentityStsV1Jwk
- 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
-
#alg ⇒ String
Algorithm intended for use with the key.
-
#e ⇒ String
Exponent value for kty="RSA".
-
#kid ⇒ String
Key ID.
-
#kty ⇒ String
Key type.
-
#n ⇒ String
Modulus value for kty="RSA".
-
#use ⇒ String
Public key use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIdentityStsV1Jwk
constructor
A new instance of GoogleIdentityStsV1Jwk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleIdentityStsV1Jwk
Returns a new instance of GoogleIdentityStsV1Jwk.
451 452 453 |
# File 'lib/google/apis/sts_v1/classes.rb', line 451 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alg ⇒ String
Algorithm intended for use with the key. Currently "RS256".
Corresponds to the JSON property alg
424 425 426 |
# File 'lib/google/apis/sts_v1/classes.rb', line 424 def alg @alg end |
#e ⇒ String
Exponent value for kty="RSA".
Corresponds to the JSON property e
429 430 431 |
# File 'lib/google/apis/sts_v1/classes.rb', line 429 def e @e end |
#kid ⇒ String
Key ID.
Corresponds to the JSON property kid
434 435 436 |
# File 'lib/google/apis/sts_v1/classes.rb', line 434 def kid @kid end |
#kty ⇒ String
Key type. Currently "RSA".
Corresponds to the JSON property kty
439 440 441 |
# File 'lib/google/apis/sts_v1/classes.rb', line 439 def kty @kty end |
#n ⇒ String
Modulus value for kty="RSA".
Corresponds to the JSON property n
444 445 446 |
# File 'lib/google/apis/sts_v1/classes.rb', line 444 def n @n end |
#use ⇒ String
Public key use. Currently "jwt-svid".
Corresponds to the JSON property use
449 450 451 |
# File 'lib/google/apis/sts_v1/classes.rb', line 449 def use @use end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
456 457 458 459 460 461 462 463 |
# File 'lib/google/apis/sts_v1/classes.rb', line 456 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 |