This method can be used to set a custom PGT storage object.

@param CAS_PGTStorage $storage a PGT storage object that inherits from the
CAS_PGTStorage class

@return void
495401
public static function setPGTStorage($storage)
    {
        phpCAS :: traceBegin();
        phpCAS::_validateProxyExists();

        try {
            self::$_PHPCAS_CLIENT->setPGTStorage($storage);
        } catch (Exception $e) {
            phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
        }
        phpCAS :: traceEnd();
    }
372280
public function setAuthCodeStorage(AuthCodeInterface $storage)
    {
        $storage->setServer($this);
        $this->authCodeStorage = $storage;

        return $this;
    }
42021
public function run(Storage $storage)
    {
        parent::run($storage);
        $this->checkParameters();
        $this->checkRequiredParameters();
        $this->setFormId();
        $this->initialize($storage);
        $this->checkSubmit($storage);
    }
72459
public function setScopeStorage(ScopeInterface $storage)
    {
        $storage->setServer($this);
        $this->scopeStorage = $storage;

        return $this;
    }
1126468
public void setStorageSize(java.util.Collection<Range> storageSize) {
        if (storageSize == null) {
            this.storageSize = null;
            return;
        }

        this.storageSize = new java.util.ArrayList<Range>(storageSize);
    }
398480
private function loadTGTfromFile($tgtStorageLocation)
    {
        $tgtStorageData = json_decode(file_get_contents($tgtStorageLocation), true);

        if ($tgtStorageData['username']) {
            $this->casUsername = $tgtStorageData['username'];
        } else {
            throw new \Exception('TGT storage missing "username" value!', 551);
        }
        if ($tgtStorageData['server']) {
            $this->casServer = $tgtStorageData['server'];
        } else {
            throw new \Exception('TGT storage missing "server" value!', 552);
        }
        if ($tgtStorageData['context']) {
            $this->casRESTcontext = $tgtStorageData['context'];
        } else {
            throw new \Exception('TGT storage missing "context" value!', 552);
        }
        if ($tgtStorageData['TGT']) {
            $this->tgt = $tgtStorageData['TGT'];
            $this->tgtLocation = $this->casServer . $this->casRESTcontext . '/' . $this->tgt;
        } else {
            throw new \Exception('TGT storage missing "TGT" value!', 552);
        }
    }
837626
public void setStorageTypeLimits(java.util.Collection<StorageTypeLimit> storageTypeLimits) {
        if (storageTypeLimits == null) {
            this.storageTypeLimits = null;
            return;
        }

        this.storageTypeLimits = new java.util.ArrayList<StorageTypeLimit>(storageTypeLimits);
    }
1240819
protected final void setStorageStrategy(int setStrategy)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "setStorageStrategy", new Integer(setStrategy));

    storageStrategy = setStrategy;

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "setStorageStrategy");
  }
212738
public function destroy(Storage $storage)
    {
        $this->storage->destroy($storage);

        return redirect()->route('admin.product.storage.index')
            ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));
    }
823435
public static function factory($storage)
    {
        switch ($storage) {
            case 'apc':
                return new Storage\Apc(Cache::storage('apc'));

            case 'cookie':
                return new Storage\Cookie();

            case 'file':
                return new Storage\File(Config::get('session.storage_path'));

            case 'pdo':
                return new Storage\Pdo(Pdo\Factory::get(Config::get('session.database')));

            case 'memcached':
                return new Storage\Memcached(Cache::storage('memcached'));

            case 'memory':
                return new Storage\Memory();

            case 'redis':
                return new Storage\Redis(Cache::storage('redis'));

            case 'dba':
                return new Storage\Dba(Cache::storage('dba'));

            default:
                throw new \RuntimeException("Session storage [$storage] is not supported.");
        }
    }
1040594
public void setStorage(java.util.Collection<ValidStorageOptions> storage) {
        if (storage == null) {
            this.storage = null;
            return;
        }

        this.storage = new com.amazonaws.internal.SdkInternalList<ValidStorageOptions>(storage);
    }
229493
public function setStorage(Storage $storage = null)
    {
        if ($this->storage !== $storage) {
            $this->storage = $storage;
        }

        return $this;
    }
1313628
public function run(Storage $storage)
    {
        parent::run($storage);

        $this->checkParameters();
        $this->parameters[$this->documentFolderParameterName] = $this->storage->getDocuments()->getDocumentFolderBySlug($this->documentFolderPath);
    }
467880
public function setStored($stored = true)
    {
        $this->stored = (bool) $stored;
        $this->modified = $stored ? [] : $this->values;

        return $this;
    }
685547
private function _storePGT($pgt,$pgt_iou)
    {
        // ensure that storage is initialized
        $this->_initPGTStorage();
        // writes the PGT
        $this->_pgt_storage->write($pgt, $pgt_iou);
    }
895218
public function connect(\OtherCode\FController\Components\Services $services, \OtherCode\FController\Components\Registry $storage, \OtherCode\FController\Components\Messages $messages)
    {
        if (!isset($this->services)) {
            $this->services = $services;
        }

        if (!isset($this->storage)) {
            $this->storage = $storage;
        }

        if (!isset($this->messages)) {
            $this->messages = $messages;
        }
    }
107180
public function update(Storage $storage, UpdateStorageRequest $request)
    {
        $this->storage->update($storage, $request->all());

        return redirect()->route('admin.product.storage.index')
            ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));
    }