WrapKeyResponse
in package
Response from the Tenant Security Proxy's wrap key endpoint
Table of Contents
- $dek : Bytes
- $edek : Bytes
- __construct() : mixed
- fromResponse() : WrapKeyResponse
- Converts from a TSP response to a WrapKeyResponse.
- getDek() : Bytes
- Gets the document key sent back from the TSP.
- getEdek() : Bytes
- Gets the encrypted document key sent back from the TSP.
Properties
$dek
private
Bytes
$dek
$edek
private
Bytes
$edek
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 WrapKeyResponse.
public
static fromResponse(string $response) : WrapKeyResponse
Parameters
- $response : string
-
Response from the TSP from the wrap endpoint
Tags
Return values
WrapKeyResponse —A valid TSP wrap 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