Jose\Algorithm\KeyEncryption\AESKW::unwrapKey PHP Method

unwrapKey() public method

public unwrapKey ( Jose\Object\JWKInterface $key, $encrypted_cek, array $header )
$key Jose\Object\JWKInterface
$header array
    public function unwrapKey(JWKInterface $key, $encrypted_cek, array $header)
    {
        $this->checkKey($key);
        $wrapper = $this->getWrapper();
        return $wrapper->unwrap(Base64Url::decode($key->get('k')), $encrypted_cek);
    }