public function setMasterKeyPairProvider($provider)
    {
        if (isset($this->masterKeyPairProvider)) {
            throw new InvalidCallException('Setting read-only property: ' . get_class($this) . '::masterKeyPairProvider');
        }
        if (is_array($provider)) {
            $provider = Yii::createObject($provider);
        }

        $this->masterKeyPairProvider = $provider;
    }