Module: Dkim::Options
- Included in:
- Dkim, SignedMail
- Defined in:
- lib/dkim/options.rb
Instance Attribute Summary collapse
-
#body_canonicalization ⇒ String
Body canonicalization algorithm.
-
#domain ⇒ String
The domain used for signing.
-
#expire ⇒ Time, #to_i
Signature expiration.
-
#header_canonicalization ⇒ String
Header canonicalization algorithm.
-
#identity ⇒ String
The identity used for signing.
- #options ⇒ Object
-
#private_key ⇒ OpenSSL::PKey::RSA
RSA private key for signing.
-
#selector ⇒ String
Selector used for signing.
-
#signable_headers ⇒ Array<String>
Configures which headers should be signed.
-
#signing_algorithm ⇒ String
The signing algorithm for dkim.
-
#time ⇒ Time, #to_i
This corresponds to the t= tag in the dkim header.
Instance Attribute Details
#body_canonicalization ⇒ String
Body canonicalization algorithm. Valid values are ‘simple’ and ‘relaxed’ (default) This corresponds to the second half of the c= tag in the dkim header.
72 |
# File 'lib/dkim/options.rb', line 72 define_option_method :body_canonicalization |
#domain ⇒ String
The domain used for signing. This corresponds to the d= tag in the dkim header.
46 |
# File 'lib/dkim/options.rb', line 46 define_option_method :domain |
#expire ⇒ Time, #to_i
Signature expiration. This corresponds to the x= tag in the dkim header.
28 |
# File 'lib/dkim/options.rb', line 28 define_option_method :expire |
#header_canonicalization ⇒ String
Header canonicalization algorithm. Valid values are ‘simple’ and ‘relaxed’ (default) This corresponds to the first half of the c= tag in the dkim header.
65 |
# File 'lib/dkim/options.rb', line 65 define_option_method :header_canonicalization |
#identity ⇒ String
The identity used for signing. This corresponds to the i= tag in the dkim header.
52 |
# File 'lib/dkim/options.rb', line 52 define_option_method :identity |
#options ⇒ Object
13 14 15 |
# File 'lib/dkim/options.rb', line 13 def @options ||= {} end |
#private_key ⇒ OpenSSL::PKey::RSA
RSA private key for signing. Can be assigned either an OpenSSL::PKey::RSA private key or a valid PEM format string.
78 |
# File 'lib/dkim/options.rb', line 78 define_option_method :private_key |
#selector ⇒ String
Selector used for signing. This corresponds to the s= tag in the dkim header.
58 |
# File 'lib/dkim/options.rb', line 58 define_option_method :selector |
#signable_headers ⇒ Array<String>
Configures which headers should be signed. Defaults to Dkim::DefaultHeaders
40 |
# File 'lib/dkim/options.rb', line 40 define_option_method :signable_headers |
#signing_algorithm ⇒ String
The signing algorithm for dkim. Valid values are ‘rsa-sha1’ and ‘rsa-sha256’ (default). This corresponds to the a= tag in the dkim header.
34 |
# File 'lib/dkim/options.rb', line 34 define_option_method :signing_algorithm |
#time ⇒ Time, #to_i
This corresponds to the t= tag in the dkim header. The default (nil) is to use the current time at signing.
22 |
# File 'lib/dkim/options.rb', line 22 define_option_method :time |