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 theoriginalnon Mutiny-ified interface using Vert.x codegen. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static TypeArg<MongoAuthorization>__TYPE_ARGstatic StringDEFAULT_COLLECTION_NAMEThe default name of the collection to be usedstatic StringDEFAULT_PERMISSION_FIELDThe default name of the property for the permissions, like it is stored in mongodb.static StringDEFAULT_ROLE_FIELDThe default name of the property for the roles, like it is stored in mongodb.static StringDEFAULT_USERNAME_FIELDThe 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 MongoAuthorizationcreate(String providerId, MongoClient mongoClient, io.vertx.ext.auth.mongo.MongoAuthorizationOptions options)booleanequals(Object o)io.vertx.ext.auth.mongo.MongoAuthorizationgetDelegate()inthashCode()static MongoAuthorizationnewInstance(io.vertx.ext.auth.mongo.MongoAuthorization arg)StringtoString()- 
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:
 getDelegatein classAuthorizationProvider
 
- 
toString
public String toString()
- Overrides:
 toStringin classAuthorizationProvider
 
- 
equals
public boolean equals(Object o)
- 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
public static MongoAuthorization newInstance(io.vertx.ext.auth.mongo.MongoAuthorization arg)
 
 - 
 
 -