Trianglman\Sqrl\SqrlConfiguration::getSecure PHP Method

getSecure() public method

Gets whether responses to the server should be secure
public getSecure ( ) : boolean
return boolean
    public function getSecure()
    {
        return $this->secure;
    }

Usage Example

Esempio n. 1
0
 public function getUrl()
 {
     $url = ($this->configuration->getSecure() ? 's' : '') . 'qrl://' . $this->configuration->getDomain();
     if (strpos($this->configuration->getDomain(), '/') !== false) {
         $extension = strlen($this->configuration->getDomain()) - strpos($this->configuration->getDomain(), '/');
         $url .= substr($this->generateQry(), $extension) . '&d=' . $extension;
     } else {
         $url .= $this->generateQry();
     }
     return $url;
 }
All Usage Examples Of Trianglman\Sqrl\SqrlConfiguration::getSecure