--
You received this message because you are subscribed to the Google Groups "wse-php" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wse-php+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public function signData($objKey, $data) {
return $objKey->signData($data);
}
but not sure about the $data parameter as represented by "SYMMETRIC_KEY" above.
$tokenURI = '#'.$token->getAttributeNS(WSSESoap::WSUNS, "Id");
this generates:
Fatal error: Call to undefined method XMLSecurityKey::getAttributeNS()
it's true. there is no definition for getAttributeNS anywhere in any of the libraries. if i comment this out the thing runs and creates the request with an empty <wsse:reference uri="" /> under the encrypted key header. i guess i can hardcode that since i have to be done with this by saturday but was wondering if you'd have an updated version of your code that includes that function...
thanks...
--You received this message because you are subscribed to a topic in the Google Groups "wse-php" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wse-php/hQErwKlqM4c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wse-php+u...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "wse-php" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wse-php+u...@googlegroups.com.
public function encryptKyeOnly($siteKey, $objKey, $options=NULL, $encryptSignature=TRUE) {
$enc = new XMLSecEnc();
$xpath = new DOMXPath($this->envelope->ownerDocument);
$enc->encryptKey($siteKey, $objKey, false);
$nodes = $xpath->query('//*[local-name()="Security"]');
$signode = $nodes->item(0);
$this->addEncryptedKey($signode, $enc, $siteKey, $options);
}
the definition of the addEncryotedKey looks like this:
public function addEncryptedKey($node, $key, $token, $options = NULL)
so i guess it will be the $siteKey which is XMLSecurityKey instance.
i just used your encryptSoapDoc without going through all the parts - just the key...
also in your original code there is another reference to the $token in addEncryptedKey as XMLSecurityKey:
$x509 = openssl_x509_parse($token->getX509Certificate());
getX509Certificate is defined as XMLSecurityKey method in xmlseclibs.php
now i'm attempting adding the signature for the encrypted key into the headrs... any advice on that?
btw: i got your book "pro php xml and web services" and was reading mostly chapter 12 - 'xml security'. i think doing this project is pretty much defined in these 2 sentences on page 442 (on my pdf): "The methods are not even remotely close to being simple. In PHP, it is possible to implement enterprise security to a point, but you may be begging for mercy by the time you are done."
i'd agree...
thanks...