public class JDBCAuthentication extends AuthenticationProvider
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<JDBCAuthentication> |
__TYPE_ARG |
Constructor and Description |
---|
JDBCAuthentication(JDBCAuthentication delegate) |
JDBCAuthentication(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static JDBCAuthentication |
create(JDBCClient client,
JDBCAuthenticationOptions options)
Create a JDBC auth provider implementation
|
static JDBCAuthentication |
create(JDBCClient client,
JDBCHashStrategy hashStrategy,
JDBCAuthenticationOptions options)
Deprecated.
|
boolean |
equals(Object o) |
JDBCAuthentication |
getDelegate() |
String |
hash(String id,
Map<String,String> params,
String salt,
String password)
Hashes a password to be stored.
|
String |
hash(String id,
String salt,
String password)
Hashes a password to be stored.
|
int |
hashCode() |
static JDBCAuthentication |
newInstance(JDBCAuthentication arg) |
String |
toString() |
authenticate, authenticate, authenticate, authenticate, newInstance, rxAuthenticate, rxAuthenticate
public static final io.vertx.lang.rx.TypeArg<JDBCAuthentication> __TYPE_ARG
public JDBCAuthentication(JDBCAuthentication delegate)
public JDBCAuthentication(Object delegate)
public String toString()
toString
in class AuthenticationProvider
public boolean equals(Object o)
equals
in class AuthenticationProvider
public int hashCode()
hashCode
in class AuthenticationProvider
public JDBCAuthentication getDelegate()
getDelegate
in class AuthenticationProvider
@Deprecated public static JDBCAuthentication create(JDBCClient client, JDBCHashStrategy hashStrategy, JDBCAuthenticationOptions options)
client
- the JDBC client instancehashStrategy
- legacy hashing strategyoptions
- authentication optionspublic static JDBCAuthentication create(JDBCClient client, JDBCAuthenticationOptions options)
client
- the JDBC client instanceoptions
- authentication optionspublic String hash(String id, Map<String,String> params, String salt, String password)
HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
id
- params
- salt
- password
- public String hash(String id, String salt, String password)
HashingStrategy.hash(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String)
id
- salt
- password
- public static JDBCAuthentication newInstance(JDBCAuthentication arg)
Copyright © 2022 Eclipse. All rights reserved.