Class MongoAuthorization
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.authorization.AuthorizationProvider
-
- io.vertx.reactivex.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 RX-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(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, MongoAuthorizationOptions options)Creates an instance of MongoAuthorization by using the given and configuration object.booleanequals(Object o)MongoAuthorizationgetDelegate()inthashCode()static MongoAuthorizationnewInstance(MongoAuthorization arg)StringtoString()-
Methods inherited from class io.vertx.reactivex.ext.auth.authorization.AuthorizationProvider
create, getAuthorizations, getAuthorizations, getId, newInstance, rxGetAuthorizations
-
-
-
-
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(MongoAuthorization delegate)
-
MongoAuthorization
public MongoAuthorization(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classAuthorizationProvider
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAuthorizationProvider
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAuthorizationProvider
-
getDelegate
public MongoAuthorization getDelegate()
- Overrides:
getDelegatein classAuthorizationProvider
-
create
public static MongoAuthorization create(String providerId, MongoClient mongoClient, MongoAuthorizationOptions options)
Creates an instance of MongoAuthorization by using the given and configuration object.- 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(MongoAuthorization arg)
-
-