This adapter generates a TOTP one-time password compatible with Google Authenticator and others tools.
Properties
|
|
Defines the operation executed by the adapter Possible values:
|
Parameters
|
|
Main class of the adapter (Do not change!) Possible values: de.softproject.x4.adapter.totpgenerator.TOTPGenerator: Main class (default) |
|
|
Company or organization name issuing the one-time passwords This parameter should be treated like a display name, since it will be shown in the authenticator app as provided, e.g.
|
|
|
Account which is tied to the secret key – typically a username or e-mail address This parameter should be treated like a display name, since it will be shown in the authenticator app as provided, e.g.
|
Status values
|
|
The operation was executed successfully. |
|
|
An error occurred during the operation's execution. |
|
|
The password does not match, e.g. because the input structure is not well-formed |
Input
The adapter expects different input structures depending on the selected operation.
-
Operation
GenerateSecret:
This operation doesn't require any input -
Operation
GeneratePassword:XML<Secret> <!-- 20-byte BASE32 character string --> </Secret>
-
Operation
VerifyPassword:XML<TOTP> <Password> <!-- 6-digit number with leading zeroes --> </Password> <Secret> <!-- 20-byte BASE32 character string --> </Secret> </TOTP>
-
Operation
GenerateAuthenticatorQRCode:XML<Secret> <!-- 20-byte BASE32 character string --> </Secret>
Output
The adapter outputs different structures depending on the selected operation.
-
Operation
GenerateSecret:XML<Secret> <!-- 20-byte BASE32 character string --> </Secret>
-
Operation
GeneratePassword:XML<Password> <!-- 6-digit number with leading zeroes --> </Password>
-
Operation
VerifyPassword:XML<Ok description="The password matches."/> <!-- or --> <Error description="The password provided is incorrect."/>
-
Operation
GenerateAuthenticatorQRCode:
An image (.png) with the QR code is output.