/** * Provide a application configuration level on hash nonce's as a ordered list of * nonces where each position corresponds to a version. * * The nonces are supposed not to be stored in the underlying jdbc storage but to * be provided as a application configuration. The idea is to add one extra variable * to the hash function in order to make breaking the passwords using rainbow tables * or precomputed hashes harder. Leaving the attacker only with the brute force * approach. * * The implementation relays to the JDBCHashStrategy provided. * @param nonces a List of non null Strings. * @return a reference to this for fluency */ public io.vertx.rxjava.ext.auth.jdbc.JDBCAuth setNonces(JsonArray nonces) { delegate.setNonces(nonces); return this; }
/** * Provide a application configuration level on hash nonce's as a ordered list of * nonces where each position corresponds to a version. * * The nonces are supposed not to be stored in the underlying jdbc storage but to * be provided as a application configuration. The idea is to add one extra variable * to the hash function in order to make breaking the passwords using rainbow tables * or precomputed hashes harder. Leaving the attacker only with the brute force * approach. * * The implementation relays to the JDBCHashStrategy provided. * @param nonces a List of non null Strings. * @return a reference to this for fluency */ public io.vertx.rxjava.ext.auth.jdbc.JDBCAuth setNonces(JsonArray nonces) { delegate.setNonces(nonces); return this; }
public static io.vertx.ext.auth.jdbc.JDBCAuth setNonces(io.vertx.ext.auth.jdbc.JDBCAuth j_receiver, java.util.List<Object> nonces) { io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.setNonces(nonces != null ? io.vertx.core.impl.ConversionHelper.toJsonArray(nonces) : null)); return j_receiver; } }
@Override public void setUp() throws Exception { super.setUp(); authProvider = createProvider().setNonces(new JsonArray().add("queiM3ayei1ahCheicupohphioveer0O")); }