You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
256 B
Kotlin
14 lines
256 B
Kotlin
3 years ago
|
package io.provs
|
||
|
|
||
|
|
||
|
open class Secret(private val value: String) {
|
||
|
override fun toString(): String {
|
||
|
return "********"
|
||
|
}
|
||
|
fun plain() : String {
|
||
|
return value
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
class Password(plainPassword: String) : Secret(plainPassword)
|