Class: As2::Config::Partner
- Inherits:
-
Struct
- Object
- Struct
- As2::Config::Partner
- Defined in:
- lib/as2/config.rb
Instance Attribute Summary collapse
-
#base64_scheme ⇒ Object
Returns the value of attribute base64_scheme.
-
#encryption_certificate ⇒ Object
Returns the value of attribute encryption_certificate.
-
#encryption_cipher ⇒ Object
Returns the value of attribute encryption_cipher.
-
#mdn_format ⇒ Object
Returns the value of attribute mdn_format.
-
#name ⇒ Object
Returns the value of attribute name.
-
#outbound_format ⇒ Object
Returns the value of attribute outbound_format.
-
#signing_certificate ⇒ Object
Returns the value of attribute signing_certificate.
-
#tls_verify_mode ⇒ Object
Returns the value of attribute tls_verify_mode.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #certificate=(certificate) ⇒ Object
- #encryption_cipher_instance ⇒ Object
-
#initialize ⇒ Partner
constructor
A new instance of Partner.
Constructor Details
#initialize ⇒ Partner
Returns a new instance of Partner.
16 17 18 19 20 |
# File 'lib/as2/config.rb', line 16 def initialize # set default. self.encryption_cipher = 'aes-256-cbc' self.base64_scheme = 'rfc4648' end |
Instance Attribute Details
#base64_scheme ⇒ Object
Returns the value of attribute base64_scheme
15 16 17 |
# File 'lib/as2/config.rb', line 15 def base64_scheme @base64_scheme end |
#encryption_certificate ⇒ Object
Returns the value of attribute encryption_certificate
15 16 17 |
# File 'lib/as2/config.rb', line 15 def encryption_certificate @encryption_certificate end |
#encryption_cipher ⇒ Object
Returns the value of attribute encryption_cipher
15 16 17 |
# File 'lib/as2/config.rb', line 15 def encryption_cipher @encryption_cipher end |
#mdn_format ⇒ Object
Returns the value of attribute mdn_format
15 16 17 |
# File 'lib/as2/config.rb', line 15 def mdn_format @mdn_format end |
#name ⇒ Object
Returns the value of attribute name
15 16 17 |
# File 'lib/as2/config.rb', line 15 def name @name end |
#outbound_format ⇒ Object
Returns the value of attribute outbound_format
15 16 17 |
# File 'lib/as2/config.rb', line 15 def outbound_format @outbound_format end |
#signing_certificate ⇒ Object
Returns the value of attribute signing_certificate
15 16 17 |
# File 'lib/as2/config.rb', line 15 def signing_certificate @signing_certificate end |
#tls_verify_mode ⇒ Object
Returns the value of attribute tls_verify_mode
15 16 17 |
# File 'lib/as2/config.rb', line 15 def tls_verify_mode @tls_verify_mode end |
#url ⇒ Object
Returns the value of attribute url
15 16 17 |
# File 'lib/as2/config.rb', line 15 def url @url end |
Instance Method Details
#certificate=(certificate) ⇒ Object
57 58 59 60 61 |
# File 'lib/as2/config.rb', line 57 def certificate=(certificate) cert = As2::Config.build_certificate(certificate) self['encryption_certificate'] = cert self['signing_certificate'] = cert end |
#encryption_cipher_instance ⇒ Object
76 77 78 |
# File 'lib/as2/config.rb', line 76 def encryption_cipher_instance OpenSSL::Cipher.new(encryption_cipher) end |