Hi All,
Am working on wm 8.2 sp1,I have the requirement that need to do webservice SOAP header level encription with our privatekey and partner public keys with time stamp , signature and encryption(EncryptionAlgorithm is AES 256 and key algorithm rsa15) for outbout security.
i have created below custom policy for outbout security and kept in <WM_installation>\IntegrationServer\config\policy folder and restarted IS to effect. in webservice consumer i have adder WS Secrity Handler added my custom policy name and effective policy name.
i have created flow service and invoking web service consumer connector by passing my keystoreAlias and key alias (auth/message/serverCerts/keyStoreAlias,auth/message/serverCerts/keyAlias).
i kept my partner public keys in pacakege config folder ,using getFile service loanding patner PublicKey as bytes and mapping to auth/message/partnerCert
requirement is BinarySecurityToken ValueType should be "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3” and KeyInfo ValueType should be "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier”
while testing BinarySecurityToken ValueType coming as a ValueType=“http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509PKIPathv1” and KeyInfo ValueType=“http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3”
Please help me any one how to get expected BinarySecurityToken ValueType and KeyInfo ValueType.
if i change below xml Signature TokenReferenceType=“Direct” to TokenReferenceType=“SubjectKeyIdentifier” had no luck.
<OutboundSecurity>
<Timestamp
TimeToLiveInSeconds="1200"
IncludeMilliseconds="True"/>
<Signature
TokenReferenceType="Direct"
IncludeCertPath="true"/>
<Encryption
TokenReferenceType="Direct"
EncryptionAlgorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"
KeyWrappingAlgorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
</OutboundSecurity>
</SecurityPolicy>