/**
  * check if both frotnend and backend secure(HTTPS).
  *
  * @return bool
  */
 public function isFrontendAdminSecure()
 {
     $frontend = $this->store->isFrontUrlSecure();
     $admin = $this->getWebsiteConfig(\Magento\Store\Model\Store::XML_PATH_SECURE_IN_ADMINHTML);
     $current = $this->store->isCurrentlySecure();
     if ($frontend && $admin && $current) {
         return true;
     }
     return false;
 }
 /**
  * {@inheritdoc}
  */
 public function isFrontUrlSecure()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'isFrontUrlSecure');
     if (!$pluginInfo) {
         return parent::isFrontUrlSecure();
     } else {
         return $this->___callPlugins('isFrontUrlSecure', func_get_args(), $pluginInfo);
     }
 }