public class JDBCAuth extends AuthProvider
AuthenticationProvider
instances that use the Vert.x JDBC client.
By default the hashing strategy is SHA-512. If you're already running in production this is backwards
compatible, however for new deployments or security upgrades it is recommended to use the PBKDF2 strategy
as it is the current OWASP recommendation for password storage.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<JDBCAuth> |
__TYPE_ARG |
static String |
DEFAULT_AUTHENTICATE_QUERY
The default query to be used for authentication
|
static String |
DEFAULT_PERMISSIONS_QUERY
The default query to retrieve all permissions for the role
|
static String |
DEFAULT_ROLE_PREFIX
The default role prefix
|
static String |
DEFAULT_ROLES_QUERY
The default query to retrieve all roles for the user
|
Constructor and Description |
---|
JDBCAuth(JDBCAuth delegate) |
JDBCAuth(Object delegate) |
Modifier and Type | Method and Description |
---|---|
String |
computeHash(String password,
String salt)
Deprecated.
|
String |
computeHash(String password,
String salt,
int version)
Deprecated.
|
static JDBCAuth |
create(Vertx vertx,
JDBCClient client)
Deprecated.
|
boolean |
equals(Object o) |
String |
generateSalt()
Deprecated.
|
JDBCAuth |
getDelegate() |
int |
hashCode() |
static JDBCAuth |
newInstance(JDBCAuth arg) |
JDBCAuth |
setAuthenticationQuery(String authenticationQuery)
Deprecated.
|
JDBCAuth |
setNonces(JsonArray nonces)
Deprecated.
|
JDBCAuth |
setPermissionsQuery(String permissionsQuery)
Deprecated.
|
JDBCAuth |
setRolePrefix(String rolePrefix)
Deprecated.
|
JDBCAuth |
setRolesQuery(String rolesQuery)
Deprecated.
|
String |
toString() |
newInstance
authenticate, authenticate, authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticate
public static final io.vertx.lang.rx.TypeArg<JDBCAuth> __TYPE_ARG
public static final String DEFAULT_AUTHENTICATE_QUERY
public static final String DEFAULT_ROLES_QUERY
public static final String DEFAULT_PERMISSIONS_QUERY
public static final String DEFAULT_ROLE_PREFIX
public JDBCAuth(JDBCAuth delegate)
public JDBCAuth(Object delegate)
public String toString()
toString
in class AuthProvider
public boolean equals(Object o)
equals
in class AuthProvider
public int hashCode()
hashCode
in class AuthProvider
public JDBCAuth getDelegate()
getDelegate
in class AuthProvider
@Deprecated public static JDBCAuth create(Vertx vertx, JDBCClient client)
vertx
- client
- the JDBC client instance@Deprecated public JDBCAuth setAuthenticationQuery(String authenticationQuery)
authenticationQuery
- the authentication query@Deprecated public JDBCAuth setRolesQuery(String rolesQuery)
rolesQuery
- the roles query@Deprecated public JDBCAuth setPermissionsQuery(String permissionsQuery)
permissionsQuery
- the permissions query@Deprecated public JDBCAuth setRolePrefix(String rolePrefix)
rolePrefix
- a Prefix e.g.: "role:"@Deprecated public String computeHash(String password, String salt)
password
- the unhashed passwordsalt
- the salt@Deprecated public String computeHash(String password, String salt, int version)
password
- the unhashed passwordsalt
- the saltversion
- the nonce version to use@Deprecated public String generateSalt()
@Deprecated public JDBCAuth setNonces(JsonArray nonces)
nonces
- a List of non null Strings.Copyright © 2024 Eclipse. All rights reserved.