Esempio n. 1
0
 public function test_returns_set_xml_key()
 {
     $options = new SigningOptions();
     $options->setPrivateKey($key = TestHelper::getXmlSecurityKeyMock($this));
     $this->assertSame($key, $options->getPrivateKey());
 }
Esempio n. 2
0
 /**
  * @param SigningOptions $options
  *
  * @return SignatureWriter
  */
 public static function create(SigningOptions $options)
 {
     $writer = new self($options->getCertificate(), $options->getPrivateKey());
     $writer->signingOptions = $options;
     return $writer;
 }