简体   繁体   中英

Example of outMessagePolicy option in WSPolicy class in WSO2 WSF/PHP

i need some information on how to put data in this property. In docs there's no info, google is dumb about this. All i need is tiny little example how to initialize this:) My code looks like this:

$some_sec_array = array(); // here, give my anything
$policy = new WSPolicy(array("outMessagePolicy"=>$some_sec_array));

outMessagePolicy accepts the same keys than the basic WSPolicy object, it's just a way to separate inbound and outbound policies. So you can use the keys defined in the API documentation :

sign
encrypt
algorithmSuite
layout
includeTimeStamp
protectionOrder
useUsernameToken
securityTokenReference
encryptSignature
binding

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM