Class: Doorkeeper::JWT::Config::Builder
- Inherits:
-
Object
- Object
- Doorkeeper::JWT::Config::Builder
- Defined in:
- lib/doorkeeper/jwt/config.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#encryption_method(value) ⇒ Object
For backward compatibility.
-
#initialize(&block) ⇒ Builder
constructor
A new instance of Builder.
- #secret_key(value) ⇒ Object
- #secret_key_path(value) ⇒ Object
- #signing_method(value) ⇒ Object
- #use_application_secret(value) ⇒ Object
Constructor Details
Instance Method Details
#build ⇒ Object
26 27 28 |
# File 'lib/doorkeeper/jwt/config.rb', line 26 def build @config end |
#encryption_method(value) ⇒ Object
For backward compatibility. This library does not support encryption.
43 44 45 46 |
# File 'lib/doorkeeper/jwt/config.rb', line 43 def encryption_method(value) @config.instance_variable_set("@signing_method", value) Kernel.warn("[DOORKEEPER-JWT]: Please use signing_method instead, this option is deprecated and will be removed soon") end |
#secret_key(value) ⇒ Object
34 35 36 |
# File 'lib/doorkeeper/jwt/config.rb', line 34 def secret_key(value) @config.instance_variable_set("@secret_key", value) end |
#secret_key_path(value) ⇒ Object
38 39 40 |
# File 'lib/doorkeeper/jwt/config.rb', line 38 def secret_key_path(value) @config.instance_variable_set("@secret_key_path", value) end |
#signing_method(value) ⇒ Object
48 49 50 |
# File 'lib/doorkeeper/jwt/config.rb', line 48 def signing_method(value) @config.instance_variable_set("@signing_method", value) end |
#use_application_secret(value) ⇒ Object
30 31 32 |
# File 'lib/doorkeeper/jwt/config.rb', line 30 def use_application_secret(value) @config.instance_variable_set("@use_application_secret", value) end |