Skip to main content

ManagedKey

Represents a managed key.

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

Properties

id

Is the unique identifier of the managed key (ex: 46c49ee7-ef44-472c-a873-ce81a2d5d764).

public string $id

name

Is the name of the managed key.

public string|null $name

protection

Is the protection level for the key.

public string $protection

keyType

Is the type of the key.

public string $keyType

expiration

Is the timestamp indicating when the key expires.

public int|null $expiration

key

Is the actual public key.

public string $key

accessControlType

Is the access control type for the key.

public string $accessControlType

Methods

__construct

Constructs a ManagedKey object with the specified parameters.

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

Parameters:

ParameterTypeDescription
$idstring
$namestring|null
$protectionstring
$keyTypestring
$expirationint|null
$keystring
$accessControlTypestring

fromProto

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

Parameters:

ParameterTypeDescription
$res\Bloock\ManagedKey

toProto

public toProto(): \Bloock\ManagedKey


Automatically generated on 2024-04-02