Jose\DecrypterInterface::decryptUsingKey PHP Method

decryptUsingKey() public method

public decryptUsingKey ( Jose\Object\JWEInterface &$input, Jose\Object\JWKInterface $jwk, null | integer &$recipient_index = null )
$input Jose\Object\JWEInterface A JWE object to decrypt
$jwk Jose\Object\JWKInterface The key used to decrypt the input
$recipient_index null | integer If the JWE has been decrypted, an integer that represents the ID of the recipient is set
    public function decryptUsingKey(Object\JWEInterface &$input, Object\JWKInterface $jwk, &$recipient_index = null);