AuthProvider authProvider = JDBCAuth.create(vertx, client);
/** * Compute a random salt. * @return a non null salt value */ public String generateSalt() { String ret = delegate.generateSalt(); return ret; }
/** * Compute the hashed password given the unhashed password and the salt * @param password the unhashed password * @param salt the salt * @param version the nonce version to use * @return the hashed password */ public String computeHash(String password, String salt, int version) { String ret = delegate.computeHash(password, salt, version); return ret; }
/** * Set the permissions query to use. Use this if you want to override the default permissions query. * @param permissionsQuery the permissions query * @return a reference to this for fluency */ public io.vertx.rxjava.ext.auth.jdbc.JDBCAuth setPermissionsQuery(String permissionsQuery) { delegate.setPermissionsQuery(permissionsQuery); return this; }
/** * Time constant string comparision to avoid timming attacks. * @param hasha hash a to compare * @param hashb hash b to compare * @return true if equal */ public static boolean isEqual(String hasha, String hashb) { boolean ret = io.vertx.ext.auth.jdbc.JDBCHashStrategy.isEqual(hasha, hashb); return ret; }
/** * Retrieve the hashed password from the result of the authentication query * @param row the row * @return the hashed password */ public String getHashedStoredPwd(JsonArray row) { String ret = delegate.getHashedStoredPwd(row); return ret; }
/** * Retrieve the salt from the result of the authentication query * @param row the row * @return the salt */ public String getSalt(JsonArray row) { String ret = delegate.getSalt(row); return ret; }
/** * Set the authentication query to use. Use this if you want to override the default authentication query. * @param authenticationQuery the authentication query * @return a reference to this for fluency */ public io.vertx.rxjava.ext.auth.jdbc.JDBCAuth setAuthenticationQuery(String authenticationQuery) { delegate.setAuthenticationQuery(authenticationQuery); return this; }
/** * Set the roles query to use. Use this if you want to override the default roles query. * @param rolesQuery the roles query * @return a reference to this for fluency */ public io.vertx.rxjava.ext.auth.jdbc.JDBCAuth setRolesQuery(String rolesQuery) { delegate.setRolesQuery(rolesQuery); return this; }
/** * Compute the hashed password given the unhashed password and the salt * * The implementation relays to the JDBCHashStrategy provided. * @param password the unhashed password * @param salt the salt * @param version the nonce version to use * @return the hashed password */ public String computeHash(String password, String salt, int version) { String ret = delegate.computeHash(password, salt, version); return ret; }
/** * Compute a salt string. * * The implementation relays to the JDBCHashStrategy provided. * @return a non null salt value */ public String generateSalt() { String ret = delegate.generateSalt(); return ret; }
/** * Set the role prefix to distinguish from permissions when checking for isPermitted requests. * @param rolePrefix a Prefix e.g.: "role:" * @return a reference to this for fluency */ public io.vertx.rxjava.ext.auth.jdbc.JDBCAuth setRolePrefix(String rolePrefix) { delegate.setRolePrefix(rolePrefix); return this; }
/** * Compute the hashed password given the unhashed password and the salt * @param password the unhashed password * @param salt the salt * @param version the nonce version to use * @return the hashed password */ public String computeHash(String password, String salt, int version) { String ret = delegate.computeHash(password, salt, version); return ret; }
/** * Set the permissions query to use. Use this if you want to override the default permissions query. * @param permissionsQuery the permissions query * @return a reference to this for fluency */ public io.vertx.rxjava.ext.auth.jdbc.JDBCAuth setPermissionsQuery(String permissionsQuery) { delegate.setPermissionsQuery(permissionsQuery); return this; }
/** * Time constant string comparision to avoid timming attacks. * @param hasha hash a to compare * @param hashb hash b to compare * @return true if equal */ public static boolean isEqual(String hasha, String hashb) { boolean ret = io.vertx.ext.auth.jdbc.JDBCHashStrategy.isEqual(hasha, hashb); return ret; }
/** * Retrieve the hashed password from the result of the authentication query * @param row the row * @return the hashed password */ public String getHashedStoredPwd(JsonArray row) { String ret = delegate.getHashedStoredPwd(row); return ret; }
/** * Compute the hashed password given the unhashed password and the salt without nonce * * The implementation relays to the JDBCHashStrategy provided. * @param password the unhashed password * @param salt the salt * @return the hashed password */ public String computeHash(String password, String salt) { String ret = delegate.computeHash(password, salt); return ret; }
/** * Compute a random salt. * @return a non null salt value */ public String generateSalt() { String ret = delegate.generateSalt(); return ret; }
/** * Compute a salt string. * * The implementation relays to the JDBCHashStrategy provided. * @return a non null salt value */ public String generateSalt() { String ret = delegate.generateSalt(); return ret; }
/** * Compute the hashed password given the unhashed password and the salt without nonce * * The implementation relays to the JDBCHashStrategy provided. * @param password the unhashed password * @param salt the salt * @return the hashed password */ public String computeHash(String password, String salt) { String ret = delegate.computeHash(password, salt); return ret; }