Skip to content

Instantly share code, notes, and snippets.

@fehguy
fehguy / gist:4191861
Created December 3, 2012 00:45
Json4s + salat sample
import java.util.Date
// define some classes
case class Child (name: String, birthdate: Date)
case class Spouse (name: String, birthdate: Date)
case class Address (address1: String,
address2: String,
city: String,
state: String,
@skipoleschris
skipoleschris / SSLCommunications.scala
Created February 16, 2012 08:48
Trait for doing SSL with mutual certificate exchange using dispatch http
import java.security._
import java.net.URL
import javax.net.ssl.{KeyManagerFactory, TrustManagerFactory}
import org.apache.http.conn.ssl.SSLSocketFactory
import org.apache.http.conn.scheme.Scheme
import dispatch._
// Gist trait for doing SSL with mutual certificate exchange using dispatch.
// This works without having to set up global JDK-wide keystore and truststore files.
//