Package io.vertx.ext.auth.sqlclient
Interface SqlAuthentication
-
- All Superinterfaces:
AuthenticationProvider
public interface SqlAuthentication extends AuthenticationProvider
Factory interface for creatingAuthenticationProvider
instances that use the Vert.x SQL client.- Author:
- Paulo Lopes
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static SqlAuthentication
create(SqlClient client)
Create a JDBC auth provider implementationstatic SqlAuthentication
create(SqlClient client, SqlAuthenticationOptions options)
Create a JDBC auth provider implementationdefault String
hash(String id, String salt, String password)
Hashes a password to be stored.String
hash(String id, Map<String,String> params, String salt, String password)
Hashes a password to be stored.-
Methods inherited from interface io.vertx.ext.auth.authentication.AuthenticationProvider
authenticate
-
-
-
-
Method Detail
-
create
static SqlAuthentication create(SqlClient client)
Create a JDBC auth provider implementation- Parameters:
client
- the JDBC client instance- Returns:
- the auth provider
-
create
static SqlAuthentication create(SqlClient client, SqlAuthenticationOptions options)
Create a JDBC auth provider implementation- Parameters:
client
- the JDBC client instanceoptions
- authentication options- Returns:
- the auth provider
-
hash
String hash(String id, Map<String,String> params, String salt, String password)
Hashes a password to be stored.See:
io.vertx.ext.auth.HashingStrategy#hash(String, Map, String, String)
-
-