@Test(expected = IllegalArgumentException.class) public void movingFactorShouldFailWhenArgumentIsLessThanZero() { new HOTPBuilder(RFC4226TestVectors.KEY).movingFactor(-1); }
public HOTPBuilder movingFactor(long movingFactor) { Preconditions.checkArgument(movingFactor >= 0); this.movingFactor = movingFactor; return this; }
HOTPBuilder { public HOTPBuilder movingFactor(long movingFactor) { Preconditions.checkArgument(movingFactor >= 0); this.movingFactor = movingFactor; return this; } }
HOTPBuilder { public HOTPBuilder movingFactor(long movingFactor) { Preconditions.checkArgument(movingFactor >= 0); this.movingFactor = movingFactor; return this; } HOTPBuilder(byte[] key); }
HOTPBuilder { public HOTPBuilder movingFactor(long movingFactor) { Preconditions.checkArgument(movingFactor >= 0); this.movingFactor = movingFactor; return this; } HOTPBuilder(byte[] key); HOTPBuilder movingFactor(long movingFactor); HOTPBuilder digits(int digits); HOTP build(); }
HOTPBuilder { public HOTPBuilder movingFactor(long movingFactor) { Preconditions.checkArgument(movingFactor >= 0); this.movingFactor = movingFactor; return this; } HOTPBuilder(byte[] key); HOTPBuilder movingFactor(long movingFactor); HOTPBuilder digits(int digits); HOTP build(); static final int DEFAULT_DIGITS; static final int MIN_ALLOWED_DIGITS; static final int MAX_ALLOWED_DIGITS; }