Class AuthorizationProvider
- java.lang.Object
-
- io.vertx.reactivex.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 theoriginal
non 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 AuthorizationProvider
create(String id, Set<Authorization> authorizations)
create an authorization provider with the specified id and authorizationsboolean
equals(Object o)
void
getAuthorizations(User user)
Updates the user with the set of authorizations.void
getAuthorizations(User user, Handler<AsyncResult<Void>> handler)
Updates the user with the set of authorizations.AuthorizationProvider
getDelegate()
String
getId()
returns the id of the authorization providerint
hashCode()
static AuthorizationProvider
newInstance(AuthorizationProvider arg)
io.reactivex.Completable
rxGetAuthorizations(User user)
Updates the user with the set of authorizations.String
toString()
-
-
-
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 io.reactivex.Completable 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)
-
-