Skip to main content

ManagedKeyParams

Represents the parameters for creating a managed key.

  • Full name: \Bloock\Entity\Key\ManagedKeyParams

Properties​

name​

Is the name of the managed key.

public string|null $name

protection​

Is the protection level for the key.

public string $protection

Is the protection level for the key.


keyType​

Is the timestamp indicating when the key expires.

public string $keyType

expiration​

Is the type of the key.

public int|null $expiration

Methods​

__construct​

Constructs a ManagedKeyParams object with the specified parameters.

public __construct(string $protection, string $keyType, string|null $name = null, int|null $expiration = null): mixed

Parameters:

ParameterTypeDescription
$protectionstring
$keyTypestring
$namestring|null
$expirationint|null

fromProto​

public static fromProto(\Bloock\ManagedKeyParams $res): \Bloock\Entity\Key\ManagedKeyParams
  • This method is static.

Parameters:

ParameterTypeDescription
$res\Bloock\ManagedKeyParams

toProto​

public toProto(): \Bloock\ManagedKeyParams


Automatically generated on 2024-04-17