vertx / io.vertx.ext.auth.mongo / MongoAuth / create

create

open static fun create(mongoClient: MongoClient, config: JsonObject): MongoAuth

Creates an instance of MongoAuth by using the given MongoClient and configuration object. An example for a configuration object:

 JsonObject js = new JsonObject(); js.put(MongoAuth.PROPERTY_COLLECTION_NAME, createCollectionName(MongoAuth.DEFAULT_COLLECTION_NAME)); 

Parameters

mongoClient - an instance of MongoClient to be used for data storage and retrival

config - the configuration object for the current instance. By this

Return
the created instance of MongoAuths