Class: Ccrypto::HMACConfig
- Inherits:
-
Object
- Object
- Ccrypto::HMACConfig
- Includes:
- AlgoConfig
- Defined in:
- lib/ccrypto/configs/hmac_config.rb
Instance Attribute Summary collapse
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#key ⇒ Object
Returns the value of attribute key.
Attributes included from AlgoConfig
Instance Method Summary collapse
-
#initialize ⇒ HMACConfig
constructor
A new instance of HMACConfig.
Methods included from AlgoConfig
Constructor Details
#initialize ⇒ HMACConfig
Returns a new instance of HMACConfig.
9 10 11 |
# File 'lib/ccrypto/configs/hmac_config.rb', line 9 def initialize @digest = :sha256 end |
Instance Attribute Details
#digest ⇒ Object
Returns the value of attribute digest.
7 8 9 |
# File 'lib/ccrypto/configs/hmac_config.rb', line 7 def digest @digest end |
#key ⇒ Object
Returns the value of attribute key.
7 8 9 |
# File 'lib/ccrypto/configs/hmac_config.rb', line 7 def key @key end |