SigningSecretResolver
Resolves SigningSecretInterface items.
This class with change!
Table of Contents
Properties
- $providers : array<string, SigningProviderInterface>
Methods
- __construct() : mixed
- findByIdentifier() : SigningSecretInterface|null
- Resolves a specific signing secret by its public identifier (e.g. specific `Nonce` from `NoncePool` by given public identifier "nonce:[public-name]")
- findByType() : SigningProviderInterface|null
- Resolves a signing provider by its type (e.g. `NoncePool` from type `'nonce'`)
- revokeIdentifier() : void
- Revokes a specific signing secret.
Properties
$providers
protected
array<string, SigningProviderInterface>
$providers
Methods
__construct()
public
__construct(array<string|int, mixed> $providers) : mixed
Parameters
- $providers : array<string|int, mixed>
findByIdentifier()
Resolves a specific signing secret by its public identifier (e.g. specific `Nonce` from `NoncePool` by given public identifier "nonce:[public-name]")
public
findByIdentifier(SecretIdentifier $identifier) : SigningSecretInterface|null
Parameters
- $identifier : SecretIdentifier
Return values
SigningSecretInterface|nullfindByType()
Resolves a signing provider by its type (e.g. `NoncePool` from type `'nonce'`)
public
findByType(string $type) : SigningProviderInterface|null
Parameters
- $type : string
Return values
SigningProviderInterface|nullrevokeIdentifier()
Revokes a specific signing secret.
public
revokeIdentifier(SecretIdentifier $identifier) : void
Parameters
- $identifier : SecretIdentifier