public class TOTPParameters extends AlgorithmParameters
Constructor and Description |
---|
TOTPParameters() |
Modifier and Type | Method and Description |
---|---|
long |
getClock()
Return the clock used for the calculation (seconds)
|
int |
getCodeDigits() |
String |
getMACAlgo() |
long |
getStartTime()
Return the start time used for clock synchronization.
|
long |
getTimeStep()
Return the timestep used for calculation.
|
int |
getTruncationOffset() |
boolean |
isChecksumUsed() |
void |
setClock(long clock)
Sets the clock value.
|
void |
setCodeDigits(int codeDigits)
Sets the number of truncated digits.
|
void |
setMACAlgo(String algorithm)
Sets the MAC algorithm value.
|
void |
setStartTime(long startTime)
Sets the start time used for clock synchronization.
|
void |
setTimeStep(long timeStep)
Sets the time step
|
void |
setTruncationOffset(int truncationOffset)
Sets the truncation offset
|
void |
setUseChecksum(boolean useChecksum)
Sets the use of the checksum
|
getModes, getStandardVersion, setModes, setStandardVersion
public String getMACAlgo()
public void setMACAlgo(String algorithm)
algorithm
- the MAC algorithm valuepublic void setUseChecksum(boolean useChecksum)
useChecksum
- true if checksum must be usedpublic void setTruncationOffset(int truncationOffset)
truncationOffset
- the truncation offsetpublic void setClock(long clock)
clock
- the clock valuepublic void setTimeStep(long timeStep)
timeStep
- the time steppublic void setStartTime(long startTime)
startTime
- Start Time as number of seconds.public void setCodeDigits(int codeDigits)
codeDigits
- the number of truncated digitspublic long getClock()
public int getCodeDigits()
public int getTruncationOffset()
public long getTimeStep()
public long getStartTime()
public boolean isChecksumUsed()
Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.