Skip to main content

RsaKeyPair

Represents a rsa key pair, with private and public key.

Methods​

__construct​

Constructs a RsaKeyPair object with the specified parameters.

public __construct(string $publicKey, string $privateKey): mixed

Parameters:

ParameterTypeDescription
$publicKeystring
$privateKeystring

fromProto​

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

Parameters:

ParameterTypeDescription
$res\Bloock\GenerateLocalKeyResponse

Inherited methods​

__construct​

Constructs a KeyPair object with the specified parameters.

public __construct(string $publicKey, string $privateKey): mixed

Parameters:

ParameterTypeDescription
$publicKeystring
$privateKeystring

getPublicKey​

Gets the public key.

public getPublicKey(): string

getPrivateKey​

Gets the private key.

public getPrivateKey(): string


Automatically generated on 2024-04-17