public class HOTPParameters extends AlgorithmParameters
Constructor and Description |
---|
HOTPParameters() |
Modifier and Type | Method and Description |
---|---|
int |
getCodeDigits()
Returns number of truncated digits (excluding the checksum digit).
|
long |
getCounter()
Returns counter (Moving Factor) for calculation.
|
String |
getMACAlgo()
Message authentication code (MAC) Algorithm requested.
|
int |
getTruncationOffsets()
Offset used for truncation.
|
boolean |
isCheckSumUsed()
Determines if a checksum digit is added to the calculation.
|
void |
setCodeDigits(int codeDigits)
Sets number of truncated digits (excluding the checksum digit).
|
void |
setCounter(long counter)
Sets counter (Moving Factor) for calculation.
|
void |
setMACAlgo(String algorithm)
Sets message authentication code (MAC) Algorithm requested.
|
void |
setTruncationOffsets(int truncationOffset)
Sets offset used for truncation.
|
void |
useCheckSum(boolean useCheckSum)
Enables checksum digit is added to the calculation.
|
getModes, getStandardVersion, setModes, setStandardVersion
public String getMACAlgo()
public void setMACAlgo(String algorithm)
algorithm
- friendly name for MAC Algorithm.public long getCounter()
public void setCounter(long counter)
counter
- (Moving Factor) for calculation.public int getCodeDigits()
public void setCodeDigits(int codeDigits)
codeDigits
- number of truncated digits.public boolean isCheckSumUsed()
public void useCheckSum(boolean useCheckSum)
useCheckSum
- the use of a checksumpublic int getTruncationOffsets()
public void setTruncationOffsets(int truncationOffset)
truncationOffset
- offset used for truncation.Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.