Permalink
Browse files

Support for KeyStore instances in Jetty adapter

  • Loading branch information...
1 parent 36f7507 commit 8978cbf4845b3e0dbd3a7e4415da44518f4f43d5 @weavejester weavejester committed Mar 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 ring-jetty-adapter/src/ring/adapter/jetty.clj
View
4 ring-jetty-adapter/src/ring/adapter/jetty.clj
@@ -24,7 +24,9 @@
"Creates a new SslContextFactory instance from a map of options."
[options]
(let [context (SslContextFactory.)]
- (.setKeyStorePath context (options :keystore))
+ (if (string? (options :keystore))
+ (.setKeyStorePath context (options :keystore))
+ (.setKeyStore context (options :keystore)))
(.setKeyStorePassword context (options :key-password))
(when (options :truststore)
(.setTrustStore context (options :truststore)))

0 comments on commit 8978cbf

Please sign in to comment.