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
-
public class MongoAuthorization extends AuthorizationProvider
An extension of AuthProvider which is using as store NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MongoAuthorization>
__TYPE_ARG
static String
DEFAULT_COLLECTION_NAME
The default name of the collection to be usedstatic String
DEFAULT_PERMISSION_FIELD
The default name of the property for the permissions, like it is stored in mongodb.static String
DEFAULT_ROLE_FIELD
The default name of the property for the roles, like it is stored in mongodb.static String
DEFAULT_USERNAME_FIELD
The default name of the property for the username, like it is stored in mongodb
-
Constructor Summary
Constructors Constructor Description MongoAuthorization(io.vertx.ext.auth.mongo.MongoAuthorization delegate)
MongoAuthorization(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MongoAuthorization
create(String providerId, MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthorizationOptions options)
boolean
equals(Object o)
io.vertx.ext.auth.mongo.MongoAuthorization
getDelegate()
int
hashCode()
static MongoAuthorization
newInstance(io.vertx.ext.auth.mongo.MongoAuthorization arg)
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.auth.authorization.AuthorizationProvider
create, getAuthorizations, getAuthorizationsAndAwait, getAuthorizationsAndForget, getId, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<MongoAuthorization> __TYPE_ARG
-
DEFAULT_COLLECTION_NAME
public static final String DEFAULT_COLLECTION_NAME
The default name of the collection to be used- See Also:
- Constant Field Values
-
DEFAULT_USERNAME_FIELD
public static final String DEFAULT_USERNAME_FIELD
The default name of the property for the username, like it is stored in mongodb- See Also:
- Constant Field Values
-
DEFAULT_ROLE_FIELD
public static final String 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:
- Constant Field Values
-
DEFAULT_PERMISSION_FIELD
public static final String 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:
- Constant Field Values
-
-
Constructor Detail
-
MongoAuthorization
public MongoAuthorization(io.vertx.ext.auth.mongo.MongoAuthorization delegate)
-
MongoAuthorization
public MongoAuthorization(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.mongo.MongoAuthorization getDelegate()
- Overrides:
getDelegate
in classAuthorizationProvider
-
toString
public String toString()
- Overrides:
toString
in classAuthorizationProvider
-
equals
public boolean equals(Object o)
- 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
public static MongoAuthorization newInstance(io.vertx.ext.auth.mongo.MongoAuthorization arg)
-
-