Module: TrueLayerSigning
- Extended by:
- Forwardable
- Defined in:
- lib/truelayer-signing.rb,
lib/truelayer-signing/utils.rb,
lib/truelayer-signing/config.rb,
lib/truelayer-signing/errors.rb,
lib/truelayer-signing/signer.rb,
lib/truelayer-signing/verifier.rb
Defined Under Namespace
Classes: Config, Error, JwsBase, JwsHeader, Signer, Verifier
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
20
21
22
|
# File 'lib/truelayer-signing.rb', line 20
def config
@config
end
|
Class Method Details
31
32
33
|
# File 'lib/truelayer-signing.rb', line 31
def (signature)
Verifier.parse_tl_signature(signature).first
end
|
.sign_with_pem ⇒ Object
27
28
29
|
# File 'lib/truelayer-signing.rb', line 27
def sign_with_pem
Signer.new
end
|
.verify_with_jwks(jwks) ⇒ Object
35
36
37
|
# File 'lib/truelayer-signing.rb', line 35
def verify_with_jwks(jwks)
Verifier.new(key_type: :jwks, key_value: jwks)
end
|
.verify_with_pem(pem) ⇒ Object
39
40
41
|
# File 'lib/truelayer-signing.rb', line 39
def verify_with_pem(pem)
Verifier.new(key_type: :pem, key_value: pem)
end
|