setCertificate() public method

public setCertificate ( string $certificate )
$certificate string
Esempio n. 1
0
 /**
  * usingCertificateAuthentication
  *
  * Build nodes with certificate authentication
  *
  * User authentication and access rules are only available in Riak versions 2 and above. To use this feature, TSL
  * is required to communicate with your Riak nodes.
  *
  * CURRENTLY NOT SUPPORTED OVER THE RIAK HTTP API
  *
  * @param $certificate
  * @param string $password
  *
  * @return $this
  * @throws Builder\Exception
  */
 public function usingCertificateAuthentication($certificate, $password = '')
 {
     $this->config->setCertificate($certificate);
     $this->config->setCertificatePassword($password);
     $this->config->setAuth(true);
     throw new Node\Builder\Exception('Riak over HTTP does not support Certificate Authentication.');
     return $this;
 }