forgerock-authenticator
4.8.0
forgerock-authenticator
org.
forgerock.
android.
auth
Account
Account
Builder
Authenticator
Manager
Default
Storage
Client
FRAClient
FRAClient
Builder
FRAListener
FRAPolicy
Evaluator
FRAPolicy
Evaluator
Builder
Result
HOTPMechanism
HOTPBuilder
Mechanism
Mechanism
Factory
Mechanism
Parser
Model
Object
Notification
Factory
Oath
Code
Generator
Oath
Factory
Oath
Mechanism
Oath
Builder
Token
Type
HOTP
TOTP
Oath
Parser
Oath
Token
Code
Push
Device
Token
Push
Device
Token
Manager
Push
Factory
Push
Mechanism
Push
Builder
Push
Notification
Push
Notification
Builder
Push
Parser
Push
Responder
Push
Type
DEFAULT
CHALLENGE
BIOMETRIC
Storage
Client
TOTPMechanism
TOTPBuilder
org.
forgerock.
android.
auth.
exception
Account
Lock
Exception
Authenticator
Exception
Challenge
Response
Exception
Duplicate
Mechanism
Exception
Invalid
Notification
Exception
Invalid
Policy
Exception
Mechanism
Creation
Exception
Mechanism
Parsing
Exception
Mechanism
Policy
Violation
Exception
Mechanism
Update
Push
Token
Exception
Oath
Mechanism
Exception
Push
Mechanism
Exception
org.
forgerock.
android.
auth.
policy
Biometric
Available
Policy
Device
Tampering
Policy
FRAPolicy
org.
forgerock.
android.
auth.
util
Base32String
Decoding
Exception
Device
Utils
Request
Builder
Builder
Time
Keeper
Url
Utils
forgerock-authenticator
/
org.forgerock.android.auth
/
OathCodeGenerator
Oath
Code
Generator
open
class
OathCodeGenerator
This singleton is an utility used to generate TOTP and HOTP tokens for registered accounts.
Members
Constructors
Oath
Code
Generator
Link copied to clipboard
private
constructor
(
storageClient
:
StorageClient
)
Private constructor restricted to this class itself
Properties
INSTANCE
Link copied to clipboard
private
open
var
INSTANCE
:
OathCodeGenerator
storage
Client
Link copied to clipboard
private
open
var
storageClient
:
StorageClient
StorageClient to persist OathMechanism updates
TAG
Link copied to clipboard
private
val
TAG
:
String
Functions
generate
Next
Code
Link copied to clipboard
open
fun
generateNextCode
(
oath
:
OathMechanism
,
timeKeeper
:
TimeKeeper
)
:
OathTokenCode
Generates a new set of codes for this token.
get
Instance
Link copied to clipboard
open
fun
getInstance
(
)
:
OathCodeGenerator
Return the OathCodeGenerator instance
open
fun
getInstance
(
storageClient
:
StorageClient
)
:
OathCodeGenerator
Initialize/Return the OathCodeGenerator instance
get
OTP
Link copied to clipboard
private
open
fun
getOTP
(
counter
:
Long
,
digits
:
Int
,
secretStr
:
String
,
algo
:
String
)
:
String
Compute new OTP code
reset
Link copied to clipboard
@
VisibleForTesting
open
fun
reset
(
)