- Source:
Classes
Methods
-
<static> MongoAuth.create(mongoClient, config) → {MongoAuth}
-
Creates an instance of MongoAuth by using the given 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:
Name Type Description mongoClient
MongoClient an instance of to be used for data storage and retrival config
Object the configuration object for the current instance. By this Returns:
the created instance of MongoAuths- Type
- MongoAuth