vertx / io.vertx.rxjava.ext.auth.mongo / MongoAuth / setUsernameCredentialField

setUsernameCredentialField

open fun setUsernameCredentialField(fieldName: String): MongoAuth

Set the name of the field to be used as property for the username in the method io.vertx.rxjava.ext.auth.AuthProvider#authenticate. Defaults to io.vertx.rxjava.ext.auth.mongo.MongoAuth

Parameters

fieldName - the name of the field to be used

Return
the current instance itself for fluent calls