commonMain.user.UserRecord.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of security Show documentation
Show all versions of security Show documentation
"Security Utils and data models for Kotlin"
package de.peekandpoke.ultra.security.user
import kotlinx.serialization.Serializable
@Serializable
data class UserRecord(
val userId: String = "anonymous",
val clientIp: String = "unknown",
val desc: String = "n/a",
val type: String = "n/a",
) {
fun isAnonymous() = this == anonymous || userId == "anonymous"
companion object {
val anonymous = UserRecord()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy