Class: Dpop::Configuration
- Inherits:
-
Object
- Object
- Dpop::Configuration
- Defined in:
- lib/dpop/configuration.rb
Overview
Configures the app’s module methods
Constant Summary collapse
- DEFAULT_COOKIE_NAME =
"_proof_keys"
- DEFAULT_ENCRYPTION_KEY =
ENV["DPOP_ENCRYPTION_KEY"] || ""
- DEFAULT_GENERATED_KEY_SIZE =
1024
- DEFAULT_KEY_ALG =
:rsa
Instance Attribute Summary collapse
-
#cookie_name ⇒ Object
Returns the value of attribute cookie_name.
-
#encryption_key ⇒ Object
Returns the value of attribute encryption_key.
-
#generated_key_size ⇒ Object
Returns the value of attribute generated_key_size.
-
#key_alg ⇒ Object
Returns the value of attribute key_alg.
Instance Method Summary collapse
- #encryptor ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 |
# File 'lib/dpop/configuration.rb', line 13 def initialize self. = DEFAULT_COOKIE_NAME self.encryption_key = DEFAULT_ENCRYPTION_KEY self.generated_key_size = DEFAULT_GENERATED_KEY_SIZE self.key_alg = DEFAULT_KEY_ALG end |
Instance Attribute Details
#cookie_name ⇒ Object
Returns the value of attribute cookie_name.
6 7 8 |
# File 'lib/dpop/configuration.rb', line 6 def @cookie_name end |
#encryption_key ⇒ Object
Returns the value of attribute encryption_key.
6 7 8 |
# File 'lib/dpop/configuration.rb', line 6 def encryption_key @encryption_key end |
#generated_key_size ⇒ Object
Returns the value of attribute generated_key_size.
6 7 8 |
# File 'lib/dpop/configuration.rb', line 6 def generated_key_size @generated_key_size end |
#key_alg ⇒ Object
Returns the value of attribute key_alg.
6 7 8 |
# File 'lib/dpop/configuration.rb', line 6 def key_alg @key_alg end |