2022-06-20 17:47:23 +02:00
|
|
|
<?php
|
|
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
|
|
# source: GoogleAuth.proto
|
|
|
|
|
|
|
|
namespace App\Protobuf;
|
|
|
|
|
2022-07-05 10:10:24 +02:00
|
|
|
use App\Models\TwoFAccount;
|
|
|
|
|
2022-06-20 17:47:23 +02:00
|
|
|
class GAuthValueMapping
|
|
|
|
{
|
|
|
|
const ALGORITHM = [
|
|
|
|
'ALGORITHM_UNSPECIFIED' => '',
|
2022-07-05 10:10:24 +02:00
|
|
|
'ALGORITHM_SHA1' => TwoFAccount::SHA1,
|
|
|
|
'ALGORITHM_SHA256' => TwoFAccount::SHA256,
|
|
|
|
'ALGORITHM_SHA512' => TwoFAccount::SHA512,
|
|
|
|
'ALGORITHM_MD5' => TwoFAccount::MD5
|
2022-06-20 17:47:23 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
const DIGIT_COUNT = [
|
|
|
|
'DIGIT_COUNT_UNSPECIFIED' => '',
|
|
|
|
'DIGIT_COUNT_SIX' => 6,
|
|
|
|
'DIGIT_COUNT_EIGHT' => 8
|
|
|
|
];
|
|
|
|
|
|
|
|
const OTP_TYPE = [
|
|
|
|
'OTP_TYPE_UNSPECIFIED' => '',
|
2022-07-05 10:10:24 +02:00
|
|
|
'OTP_TYPE_HOTP' => TwoFAccount::HOTP,
|
|
|
|
'OTP_TYPE_TOTP' => TwoFAccount::TOTP
|
2022-06-20 17:47:23 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
private function __construct() {}
|
|
|
|
}
|