Reference documentation and code samples for the googleauth class Google::Auth::IDTokens::StaticKeySource.
A key source that contains a static set of keys.
Inherits
- Object
Methods
.from_jwk
def self.from_jwk(jwk) -> StaticKeySource
Create a static key source containing a single key parsed from a single JWK, which may be given as either a hash or an unparsed JSON string.
- jwk (Hash, String) — The JWK specification.
.from_jwk_set
def self.from_jwk_set(jwk_set) -> StaticKeySource
Create a static key source containing multiple keys parsed from a JWK Set, which may be given as either a hash or an unparsed JSON string.
- jwk_set (Hash, String) — The JWK Set specification.
#current_keys
def current_keys() -> Array<KeyInfo>
Return the current keys. Does not perform any refresh.
- (Array<KeyInfo>)
#initialize
def initialize(keys) -> StaticKeySource
Create a static key source with the given keys.
- keys (Array<KeyInfo>) — The keys
- (StaticKeySource) — a new instance of StaticKeySource
#refresh_keys
def refresh_keys() -> Array<KeyInfo>
Return the current keys. Does not perform any refresh.
- (Array<KeyInfo>)