Class: SignatureDfe::Config
- Inherits:
-
Object
- Object
- SignatureDfe::Config
- Includes:
- AbstractClass
- Defined in:
- lib/signature_dfe/config.rb
Instance Attribute Summary collapse
-
#cert ⇒ Object
Returns the value of attribute cert.
-
#password ⇒ Object
writeonly
Sets the attribute password.
-
#pkcs12 ⇒ Object
Returns the value of attribute pkcs12.
-
#pkey ⇒ Object
Returns the value of attribute pkey.
Instance Method Summary collapse
- #cert? ⇒ Boolean
- #clear ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #inspect ⇒ Object
- #instance_variables ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
9 10 11 |
# File 'lib/signature_dfe/config.rb', line 9 def initialize clear end |
Instance Attribute Details
#cert ⇒ Object
Returns the value of attribute cert.
5 6 7 |
# File 'lib/signature_dfe/config.rb', line 5 def cert @cert end |
#password=(value) ⇒ Object (writeonly)
Sets the attribute password
7 8 9 |
# File 'lib/signature_dfe/config.rb', line 7 def password=(value) @password = value end |
#pkcs12 ⇒ Object
Returns the value of attribute pkcs12.
5 6 7 |
# File 'lib/signature_dfe/config.rb', line 5 def pkcs12 @pkcs12 end |
#pkey ⇒ Object
Returns the value of attribute pkey.
5 6 7 |
# File 'lib/signature_dfe/config.rb', line 5 def pkey @pkey end |
Instance Method Details
#cert? ⇒ Boolean
24 25 26 |
# File 'lib/signature_dfe/config.rb', line 24 def cert? !(cert.nil? || cert.empty?) end |
#clear ⇒ Object
13 14 15 16 17 18 |
# File 'lib/signature_dfe/config.rb', line 13 def clear @pkcs12 = nil @pkey = nil @cert = nil @password = nil end |
#inspect ⇒ Object
20 21 22 |
# File 'lib/signature_dfe/config.rb', line 20 def inspect super.gsub(/, @pass[\s\S]*?>/, '>') end |
#instance_variables ⇒ Object
28 29 30 |
# File 'lib/signature_dfe/config.rb', line 28 def instance_variables super - [:@password] end |