a-blog cms PHP API Reference

TfaSecretKeyResult
in package

FinalYes

2段階認証の秘密鍵取得結果。

「鍵が取れた」「未登録」「復号失敗」の3状態を1つの値で表現する。 成功時のみ秘密鍵の値を保持する。

Table of Contents

Properties

$status  : TfaSecretKeyStatus
$value  : string|null

Methods

decryptFailed()  : self
getValue()  : string
成功時のみ秘密鍵を返す。失敗状態で呼ぶと例外。
getValueOrNull()  : string|null
成功なら秘密鍵、それ以外は null。
isDecryptFailed()  : bool
isNotRegistered()  : bool
isSuccess()  : bool
notRegistered()  : self
success()  : self
__construct()  : mixed

Properties

Methods

getValue()

成功時のみ秘密鍵を返す。失敗状態で呼ぶと例外。

public getValue() : string
Return values
string

getValueOrNull()

成功なら秘密鍵、それ以外は null。

public getValueOrNull() : string|null
Return values
string|null

success()

public static success(string $value) : self
Parameters
$value : string
Return values
self

        
On this page

Search results