open class MongoAuth : AuthProvider
An extension of AuthProvider which is using as store NOTE: This class has been automatically generated from the io.vertx.ext.auth.mongo.MongoAuth non RX-ified interface using Vert.x codegen.
MongoAuth(delegate: MongoAuth) |
static val __TYPE_ARG: TypeArg<MongoAuth> |
open static fun create(mongoClient: MongoClient, config: JsonObject): MongoAuth
Creates an instance of MongoAuth by using the given and configuration object. An example for a configuration object:
|
|
open fun equals(other: Any?): Boolean |
|
open fun getCollectionName(): String
The name of the collection used to store User objects inside. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth |
|
open fun getDelegate(): MongoAuth |
|
open fun getHashStrategy(): HashStrategy
The HashStrategy which is used by the current instance |
|
open fun getPasswordCredentialField(): String
Get the name of the field to be used as property for the password of credentials in the method |
|
open fun getPasswordField(): String
Get the name of the field to be used for the password Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth |
|
open fun getPermissionField(): String
Get the name of the field to be used for the permissions. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth. Permissions are expected to be saved as JsonArray |
|
open fun getRoleField(): String
Get the name of the field to be used for the roles. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth. Roles are expected to be saved as JsonArray |
|
open fun getSaltField(): String
Get the name of the field to be used for the salt. Only used when |
|
open fun getUsernameCredentialField(): String
Get the name of the field to be used as property for the username in the method |
|
open fun getUsernameField(): String
Get the name of the field to be used for the username. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth |
|
open fun hashCode(): Int |
|
open fun insertUser(username: String, password: String, roles: MutableList<String>, permissions: MutableList<String>, resultHandler: Handler<AsyncResult<String>>): Unit
Insert a new user into mongo in the convenient way |
|
open static fun newInstance(arg: MongoAuth): MongoAuth |
|
open fun rxInsertUser(username: String, password: String, roles: MutableList<String>, permissions: MutableList<String>): Single<String>
Insert a new user into mongo in the convenient way |
|
open fun setCollectionName(collectionName: String): MongoAuth
Set the name of the collection to be used. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth |
|
open fun setHashStrategy(hashStrategy: HashStrategy): MongoAuth
The HashStrategy which is used by the current instance |
|
open fun setPasswordCredentialField(fieldName: String): MongoAuth
Set the name of the field to be used as property for the password of credentials in the method |
|
open fun setPasswordField(fieldName: String): MongoAuth
Set the name of the field to be used for the password Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth |
|
open fun setPermissionField(fieldName: String): MongoAuth
Set the name of the field to be used for the permissions. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth. Permissions are expected to be saved as JsonArray |
|
open fun setRoleField(fieldName: String): MongoAuth
Set the name of the field to be used for the roles. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth. Roles are expected to be saved as JsonArray |
|
open fun setSaltField(fieldName: String): MongoAuth
Set the name of the field to be used for the salt. Only used when |
|
open fun setUsernameCredentialField(fieldName: String): MongoAuth
Set the name of the field to be used as property for the username in the method |
|
open fun setUsernameField(fieldName: String): MongoAuth
Set the name of the field to be used for the username. Defaults to io.vertx.reactivex.ext.auth.mongo.MongoAuth |
|
open fun toString(): String |