Package io.vertx.mutiny.ext.auth.mongo
Class MongoAuthorization
java.lang.Object
io.vertx.mutiny.ext.auth.authorization.AuthorizationProvider
io.vertx.mutiny.ext.auth.mongo.MongoAuthorization
- All Implemented Interfaces:
MutinyDelegate
An extension of AuthProvider which is using as store
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<MongoAuthorization>static final StringThe default name of the collection to be usedstatic final StringThe default name of the property for the permissions, like it is stored in mongodb.static final StringThe default name of the property for the roles, like it is stored in mongodb.static final StringThe default name of the property for the username, like it is stored in mongodb -
Constructor Summary
ConstructorsConstructorDescriptionMongoAuthorization(io.vertx.ext.auth.mongo.MongoAuthorization delegate) MongoAuthorization(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic MongoAuthorizationcreate(String providerId, MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthorizationOptions options) booleanio.vertx.ext.auth.mongo.MongoAuthorizationinthashCode()static MongoAuthorizationnewInstance(io.vertx.ext.auth.mongo.MongoAuthorization arg) toString()Methods inherited from class io.vertx.mutiny.ext.auth.authorization.AuthorizationProvider
create, getAuthorizations, getAuthorizationsAndAwait, getAuthorizationsAndForget, getId, newInstance
-
Field Details
-
__TYPE_ARG
-
DEFAULT_COLLECTION_NAME
The default name of the collection to be used- See Also:
-
DEFAULT_USERNAME_FIELD
The default name of the property for the username, like it is stored in mongodb- See Also:
-
DEFAULT_ROLE_FIELD
The default name of the property for the roles, like it is stored in mongodb. Roles are expected to be saved as JsonArray- See Also:
-
DEFAULT_PERMISSION_FIELD
The default name of the property for the permissions, like it is stored in mongodb. Permissions are expected to be saved as JsonArray- See Also:
-
-
Constructor Details
-
MongoAuthorization
public MongoAuthorization(io.vertx.ext.auth.mongo.MongoAuthorization delegate) -
MongoAuthorization
-
-
Method Details
-
getDelegate
public io.vertx.ext.auth.mongo.MongoAuthorization getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classAuthorizationProvider- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toStringin classAuthorizationProvider
-
equals
- Overrides:
equalsin classAuthorizationProvider
-
hashCode
public int hashCode()- Overrides:
hashCodein classAuthorizationProvider
-
create
public static MongoAuthorization create(String providerId, MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthorizationOptions options) - Parameters:
providerId- the provider ID to differentiate from othersmongoClient- an instance of to be used for data storage and retrivaloptions- the configuration object for the current instance.- Returns:
- the created instance of
MongoAuthorization
-
newInstance
-