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 String
The default name of the collection to be usedstatic final String
The default name of the property for the permissions, like it is stored in mongodb.static final String
The default name of the property for the roles, like it is stored in mongodb.static final String
The 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 MongoAuthorization
create
(String providerId, MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthorizationOptions options) boolean
io.vertx.ext.auth.mongo.MongoAuthorization
int
hashCode()
static MongoAuthorization
newInstance
(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:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classAuthorizationProvider
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toString
in classAuthorizationProvider
-
equals
- Overrides:
equals
in classAuthorizationProvider
-
hashCode
public int hashCode()- Overrides:
hashCode
in 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
-