public abstract class AbstractOTPGenerator extends Object
| Constructor and Description |
|---|
AbstractOTPGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
generateInternal(byte[] key,
long count)
Internal OTP generation method.
|
protected abstract org.bouncycastle.crypto.Digest |
getDigest() |
int |
getNumberOfDigits() |
void |
setNumberOfDigits(int digits)
Sets the numbers in the generated OTP.
|
public int getNumberOfDigits()
public void setNumberOfDigits(int digits)
digits - Number of digits in generated OTP. MUST be in the range 6 - 9. Default is 6.protected int generateInternal(byte[] key,
long count)
key - Per-user key.count - Counter moving factor.protected abstract org.bouncycastle.crypto.Digest getDigest()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.