Class SqlAuthorization
- java.lang.Object
-
- io.vertx.reactivex.ext.auth.sqlclient.SqlAuthorization
-
- All Implemented Interfaces:
AuthorizationProvider
public class SqlAuthorization extends Object implements AuthorizationProvider
Factory interface for creating instances that use the Vert.x SQL client.NOTE: This class has been automatically generated from the
original
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<SqlAuthorization>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description SqlAuthorization(SqlAuthorization delegate)
SqlAuthorization(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlAuthorization
create(SqlClient client)
Create a JDBC authorization provider implementationstatic SqlAuthorization
create(SqlClient client, SqlAuthorizationOptions options)
Create a JDBC authorization provider implementationboolean
equals(Object o)
Future<Void>
getAuthorizations(User user)
Updates the user with the set of authorizations.SqlAuthorization
getDelegate()
String
getId()
returns the id of the authorization providerint
hashCode()
static SqlAuthorization
newInstance(SqlAuthorization arg)
Completable
rxGetAuthorizations(User user)
Updates the user with the set of authorizations.String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<SqlAuthorization> __TYPE_ARG
-
-
Constructor Detail
-
SqlAuthorization
public SqlAuthorization(SqlAuthorization delegate)
-
SqlAuthorization
public SqlAuthorization(Object delegate)
-
-
Method Detail
-
getDelegate
public SqlAuthorization getDelegate()
- Specified by:
getDelegate
in interfaceAuthorizationProvider
-
getId
public String getId()
returns the id of the authorization provider- Specified by:
getId
in interfaceAuthorizationProvider
- Returns:
-
getAuthorizations
public Future<Void> getAuthorizations(User user)
Updates the user with the set of authorizations.- Specified by:
getAuthorizations
in interfaceAuthorizationProvider
- Parameters:
user
- user to lookup and update.- Returns:
- Future void to signal end of asynchronous call.
-
rxGetAuthorizations
public Completable rxGetAuthorizations(User user)
Updates the user with the set of authorizations.- Specified by:
rxGetAuthorizations
in interfaceAuthorizationProvider
- Parameters:
user
- user to lookup and update.- Returns:
- Future void to signal end of asynchronous call.
-
create
public static SqlAuthorization create(SqlClient client)
Create a JDBC authorization provider implementation- Parameters:
client
- the SQL client instance- Returns:
- the auth provider
-
create
public static SqlAuthorization create(SqlClient client, SqlAuthorizationOptions options)
Create a JDBC authorization provider implementation- Parameters:
client
- the SQL client instanceoptions
- theSqlAuthorizationOptions
- Returns:
- the auth provider
-
newInstance
public static SqlAuthorization newInstance(SqlAuthorization arg)
-
-