Created
August 24, 2017 11:26
-
-
Save s1monw1/97ff014f2933f8838d9b9fa31b62779d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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