Documentation

StaticSecret
in package
implements OtpType

An OtpType implementing a static secret

The static secret is independent of user and scope. Use cases:

  • simple mock for integration development
  • Passcode of the Day rotated by external means

Interfaces, Classes and Traits

OtpType
Interface of an OTP Type Definition

Table of Contents

fromJson()  : self
Construct from a JSON string with parameters
fromParams()  : void
Construct from a plain object with parameters
jsonSerialize()  : mixed
name()  : string
A human readable name

Methods

fromJson()

Construct from a JSON string with parameters

public static fromJson(string $json) : self
Parameters
$json : string
Return values
self

fromParams()

Construct from a plain object with parameters

public static fromParams(object $params) : void
Parameters
$params : object
Return values
void

jsonSerialize()

public jsonSerialize() : mixed
Return values
mixed

name()

A human readable name

public static name() : string
Return values
string

Search results