Class AuthorizationProvider
- java.lang.Object
-
- io.vertx.rxjava.ext.auth.authorization.AuthorizationProvider
-
- Direct Known Subclasses:
JDBCAuthorization,JWTAuthorization,KeycloakAuthorization,MicroProfileAuthorization,MongoAuthorization,PropertyFileAuthorization,ScopeAuthorization,SqlAuthorization
public class AuthorizationProvider extends Object
The role of an AuthorizationProvider is to return a set of Authorization. Note that each AuthorizationProvider must provide its own unique Id 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<AuthorizationProvider>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description AuthorizationProvider(AuthorizationProvider delegate)AuthorizationProvider(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizationProvidercreate(String id, Set<Authorization> authorizations)create an authorization provider with the specified id and authorizationsbooleanequals(Object o)voidgetAuthorizations(User user)Updates the user with the set of authorizations.voidgetAuthorizations(User user, Handler<AsyncResult<Void>> handler)Updates the user with the set of authorizations.AuthorizationProvidergetDelegate()StringgetId()returns the id of the authorization providerinthashCode()static AuthorizationProvidernewInstance(AuthorizationProvider arg)rx.Single<Void>rxGetAuthorizations(User user)Updates the user with the set of authorizations.StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<AuthorizationProvider> __TYPE_ARG
-
-
Constructor Detail
-
AuthorizationProvider
public AuthorizationProvider(AuthorizationProvider delegate)
-
AuthorizationProvider
public AuthorizationProvider(Object delegate)
-
-
Method Detail
-
getDelegate
public AuthorizationProvider getDelegate()
-
create
public static AuthorizationProvider create(String id, Set<Authorization> authorizations)
create an authorization provider with the specified id and authorizations- Parameters:
id-authorizations-- Returns:
-
getId
public String getId()
returns the id of the authorization provider- Returns:
-
getAuthorizations
public void getAuthorizations(User user, Handler<AsyncResult<Void>> handler)
Updates the user with the set of authorizations.- Parameters:
user- user to lookup and updatehandler- result handler
-
getAuthorizations
public void getAuthorizations(User user)
Updates the user with the set of authorizations.- Parameters:
user- user to lookup and update
-
rxGetAuthorizations
public rx.Single<Void> rxGetAuthorizations(User user)
Updates the user with the set of authorizations.- Parameters:
user- user to lookup and update- Returns:
-
newInstance
public static AuthorizationProvider newInstance(AuthorizationProvider arg)
-
-