Skip to main content

Encrypter

Represents an encryption configuration with various key types and access control.

  • Full name: \Bloock\Entity\Encryption\Encrypter

Properties

localKey

public ?\Bloock\Entity\Key\LocalKey $localKey

managedKey

public ?\Bloock\Entity\Key\ManagedKey $managedKey

managedCertificate

public ?\Bloock\Entity\Key\ManagedCertificate $managedCertificate

localCertificate

public ?\Bloock\Entity\Key\LocalCertificate $localCertificate

accessControl

public ?\Bloock\Entity\Key\AccessControl $accessControl

Methods

__construct

Creates a new Encrypter instance with a local key, managed key, local certificate or managed certificate.

public __construct( $key, \Bloock\Entity\Key\AccessControl|null $accessControl = null): mixed

Parameters:

ParameterTypeDescription
$key****
$accessControl\Bloock\Entity\Key\AccessControl|null

Throws:


toProto

public toProto(): \Bloock\Encrypter


Automatically generated on 2024-04-02