final class TotpSecretValueStore (View source)

internal  
 

Keeps secret bytes out of object properties so PHP representation helpers cannot export them.

Methods

static void
remember(TotpSecret $secret, string $base32)

Associates canonical secret material with its owning value object without extending its lifetime.

void
static string
valueFor(TotpSecret $secret)

Returns secret material only for a value object created through the TOTP contract.

string

Details

remember

static void remember(TotpSecret $secret, string $base32)

Associates canonical secret material with its owning value object without extending its lifetime.

Parameters

TotpSecret $secret
string $base32

Return Value

void

valueFor

static string valueFor(TotpSecret $secret)

Returns secret material only for a value object created through the TOTP contract.

Parameters

TotpSecret $secret

Return Value

string