KMP PHP API Reference

SecretStoreInterface

Table of Contents

Methods

exists()  : bool
Return true if a secret name exists without revealing or decrypting its value.
get()  : SensitiveString|null
Fetch a secret value.
list()  : array<int, string>
rotatedAt()  : DateTimeImmutable|null
Return when a secret was last rotated, if known, without revealing the value.

Methods

exists()

Return true if a secret name exists without revealing or decrypting its value.

public exists(string $name) : bool
Parameters
$name : string
Return values
bool

list()

public list([string $prefix = '' ]) : array<int, string>
Parameters
$prefix : string = ''
Return values
array<int, string>

Secret names only; never values.

rotatedAt()

Return when a secret was last rotated, if known, without revealing the value.

public rotatedAt(string $name) : DateTimeImmutable|null
Parameters
$name : string

Secret name

Return values
DateTimeImmutable|null
On this page

Search results