Package io.vertx.mutiny.ext.auth.jdbc
Class JDBCAuthentication
- java.lang.Object
-
- io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
-
- io.vertx.mutiny.ext.auth.jdbc.JDBCAuthentication
-
public class JDBCAuthentication extends AuthenticationProvider
Factory interface for creatingAuthenticationProvider
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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<JDBCAuthentication>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description JDBCAuthentication(io.vertx.ext.auth.jdbc.JDBCAuthentication delegate)
JDBCAuthentication(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JDBCAuthentication
create(JDBCClient client, io.vertx.ext.auth.jdbc.JDBCAuthenticationOptions options)
static JDBCAuthentication
create(JDBCClient client, JDBCHashStrategy hashStrategy, io.vertx.ext.auth.jdbc.JDBCAuthenticationOptions options)
Deprecated.This factory is only for backwards compatibilityboolean
equals(Object o)
io.vertx.ext.auth.jdbc.JDBCAuthentication
getDelegate()
String
hash(String id, String salt, String password)
String
hash(String id, Map<String,String> params, String salt, String password)
int
hashCode()
static JDBCAuthentication
newInstance(io.vertx.ext.auth.jdbc.JDBCAuthentication arg)
String
toString()
-
Methods inherited from class io.vertx.mutiny.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticateAndAwait, authenticateAndAwait, authenticateAndForget, authenticateAndForget, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<JDBCAuthentication> __TYPE_ARG
-
-
Constructor Detail
-
JDBCAuthentication
public JDBCAuthentication(io.vertx.ext.auth.jdbc.JDBCAuthentication delegate)
-
JDBCAuthentication
public JDBCAuthentication(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.auth.jdbc.JDBCAuthentication getDelegate()
- Overrides:
getDelegate
in classAuthenticationProvider
-
toString
public String toString()
- Overrides:
toString
in classAuthenticationProvider
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAuthenticationProvider
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAuthenticationProvider
-
create
@Deprecated public static JDBCAuthentication create(JDBCClient client, JDBCHashStrategy hashStrategy, io.vertx.ext.auth.jdbc.JDBCAuthenticationOptions options)
Deprecated.This factory is only for backwards compatibility- Parameters:
client
- the JDBC client instancehashStrategy
- legacy hashing strategyoptions
- authentication options- Returns:
- the auth provider
-
create
public static JDBCAuthentication create(JDBCClient client, io.vertx.ext.auth.jdbc.JDBCAuthenticationOptions options)
- Parameters:
client
- the JDBC client instanceoptions
- authentication options- Returns:
- the auth provider
-
hash
public String hash(String id, Map<String,String> params, String salt, String password)
- Parameters:
id
-params
-salt
-password
-- Returns:
-
hash
public String hash(String id, String salt, String password)
- Parameters:
id
-salt
-password
-- Returns:
-
newInstance
public static JDBCAuthentication newInstance(io.vertx.ext.auth.jdbc.JDBCAuthentication arg)
-
-