
model.PasswordHashBSONCodec.kt Maven / Gradle / Ivy
package com.github.fluidsonic.baku
import org.bson.BsonReader
import org.bson.BsonWriter
internal object PasswordHashBSONCodec : AbstractBSONCodec() {
override fun BsonReader.decode(context: BSONCodingContext) =
PasswordHash(readString())
override fun BsonWriter.encode(value: PasswordHash, context: BSONCodingContext) {
writeString(value.vakue)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy