Class: PKCE::Encoder
- Inherits:
-
Object
- Object
- PKCE::Encoder
- Defined in:
- lib/pkce/encoder.rb
Overview
Encodes Proof Key for Code Exchange (PKCE) codes for authorization.
Instance Method Summary collapse
- #call(length: Verifier::MAX) ⇒ Object
-
#initialize(code: Code, verifier: Verifier.new, challenger: Challenger.new) ⇒ Encoder
constructor
A new instance of Encoder.
Constructor Details
#initialize(code: Code, verifier: Verifier.new, challenger: Challenger.new) ⇒ Encoder
Returns a new instance of Encoder.
6 7 8 9 10 |
# File 'lib/pkce/encoder.rb', line 6 def initialize code: Code, verifier: Verifier.new, challenger: Challenger.new @code = code @verifier = verifier @challenger = challenger end |