The encryption service for Hyperwallet client's requests/responses
Methods | ||
---|---|---|
public
|
__construct(
string $clientPrivateKeySetLocation,
string $hyperwalletKeySetLocation,
string $encryptionAlgorithm = 'RSA-OAEP-256',
string $signAlgorithm = 'RS256',
string $encryptionMethod = 'A256CBC-HS512',
integer $jwsExpirationMinutes = 5,
)
|
# |
public
|
encrypt(string $body): string
|
# |
public
|
decrypt(string $body): string
|
# |
public
|
checkJwsExpiration(array $header)
|
# |
public
|
getVendorPath(): string
|
# |