Interface TOTPAuthenticator.TOTPCredential

Enclosing interface:
TOTPAuthenticator

public static interface TOTPAuthenticator.TOTPCredential
Interface to a TOTP credential.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get the secret key.
    Get the list of scratch codes.
    Get the TOTP URL associated with the credential.
  • Method Details

    • getKey

      @Nonnull @NotEmpty byte[] getKey()
      Get the secret key.
      Returns:
      the secret key
    • getTOTPURL

      @Nonnull @NotEmpty String getTOTPURL()
      Get the TOTP URL associated with the credential.
      Returns:
      TOTP URL
    • getScratchCodes

      @Nonnull @Unmodifiable @NotLive Collection<Integer> getScratchCodes()
      Get the list of scratch codes.
      Returns:
      the list of scratch codes