Documentation

RekeyResponse
in package

Response from the Tenant Security Proxy's re-key endpoint

Table of Contents

$dek  : Bytes
$edek  : Bytes
__construct()  : mixed
fromResponse()  : RekeyResponse
Converts from a TSP response to a RekeyResponse.
getDek()  : Bytes
Gets the document key sent back from the TSP.
getEdek()  : Bytes
Gets the encrypted document key sent back from the TSP.

Properties

Methods

__construct()

public __construct(Bytes $dek, Bytes $edek) : mixed
Parameters
$dek : Bytes

Document key sent back from the TSP

$edek : Bytes

Encrypted document key sent back from the TSP.

Return values
mixed

fromResponse()

Converts from a TSP response to a RekeyResponse.

public static fromResponse(string $response) : RekeyResponse
Parameters
$response : string

Response from the TSP from the re-key endpoint

Tags
throws
InvalidArgumentException

if the provided response is not a RekeyResponse

Return values
RekeyResponse

A valid TSP re-key response

getDek()

Gets the document key sent back from the TSP.

public getDek() : Bytes
Return values
Bytes

Document key sent back from the TSP

getEdek()

Gets the encrypted document key sent back from the TSP.

public getEdek() : Bytes
Return values
Bytes

Encrypted document key sent back from the TSP

Search results