lib/saml/kit/configuration.rb in saml-kit-1.0.13 vs lib/saml/kit/configuration.rb in saml-kit-1.0.14

- old
+ new

@@ -53,10 +53,10 @@ # # @param certificate [String] the x509 certificate with public key. # @param private_key [String] the plain text private key. # @param passphrase [String] the password to decrypt the private key. # @param use [Symbol] the type of key pair, `:signing` or `:encryption` - def add_key_pair(certificate, private_key, passphrase: '', use: :signing) + def add_key_pair(certificate, private_key, passphrase: nil, use: :signing) ensure_proper_use!(use) @key_pairs.push(::Xml::Kit::KeyPair.new(certificate, private_key, passphrase, use.to_sym)) end # Generates a unique key pair that can be used for signing or encryption.