Skip to content

Instantly share code, notes, and snippets.

@s1monw1
Created August 24, 2017 11:26
Show Gist options
  • Save s1monw1/97ff014f2933f8838d9b9fa31b62779d to your computer and use it in GitHub Desktop.
Save s1monw1/97ff014f2933f8838d9b9fa31b62779d to your computer and use it in GitHub Desktop.
data class SocketConfiguration(
var cipherSuites: List<String>? = null, var timeout: Int? = null,
var clientAuth: Boolean = false)
class Store(val name: String) {
var algorithm: String? = null
var password: CharArray? = null
var fileType: String = "JKS"
infix fun withPass(pass: String) = apply {
password = pass.toCharArray()
}
infix fun beingA(type: String) = apply {
fileType = type
}
infix fun using(algo: String) = apply {
algorithm = algo
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment