EncryptedHeader

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

EncryptedHeader

Ravinderjit
Hello,

Does Axis2 support EncryptedHeader ?
After checking this JIRA it seems that Rampart support them.

Working with Axis2 1.5.6 and Rampart 1.5.2.

Getting this error.

15:04:11,884 841245 ERROR [org.apache.axis2.engine.AxisEngine] (http-bio-8080-exec-2:) A required header representing a Message Addressing Property is not present
org.apache.axis2.AxisFault: A required header representing a Message Addressing Property is not present
        at org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
        at org.apache.axis2.addressing.AddressingFaultsHelper.triggerMessageAddressingRequiredFault(AddressingFaultsHelper.java:299)
        at org.apache.axis2.handlers.addressing.AddressingInHandler.checkForMandatoryHeaders(AddressingInHandler.java:296)
        at org.apache.axis2.handlers.addressing.AddressingInHandler.extractAddressingInformation(AddressingInHandler.java:281)
        at org.apache.axis2.handlers.addressing.AddressingInHandler.doInvoke(AddressingInHandler.java:157)
        at org.apache.axis2.handlers.AbstractTemplatedHandler.invoke(AbstractTemplatedHandler.java:44)
        at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
        at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
        at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at com.intalio.bpms.common.node.health.NodeHealthFilter.doFilter(NodeHealthFilter.java:50)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)


This is the message send out by RampartSender.

DEBUG [main] (RampartSender.java:74) - *********************** RampartSender sent out
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-1"><wsu:Created>2013-08-21T09:26:49.880Z</wsu:Created><wsu:Expires>2013-08-21T09:31:49.880Z</wsu:Expires></wsu:Timestamp><xenc:EncryptedKey Id="EncKeyId-7CFE4983B6C72B4A5413770772104405"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" /><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference><ds:X509Data>
<ds:X509IssuerSerial>
<ds:X509IssuerName>CN=Sample Service,OU=Rampart,O=Apache,L=Colombo,ST=Western,C=LK</ds:X509IssuerName>
<ds:X509SerialNumber>1261391463</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data></wsse:SecurityTokenReference>
</ds:KeyInfo><xenc:CipherData><xenc:CipherValue>iNVfUyfQLclU/i9mlM5mNrZ/+95LYZlbGUM7aVDOKJv6zgbWJ5rTrU8E7f/+aTK6zgUjzZZtVwyX+xf2TRPV5iky84E0oEHTK8+tYEKYVTVeY5/zalwp5fmQUS6kYGlHH3A81fpfbUvg1p1ooR8JwgRQSXTPJTxz3W2SxX0dLH4=</xenc:CipherValue></xenc:CipherData><xenc:ReferenceList><xenc:DataReference URI="#EncDataId-5" /><xenc:DataReference URI="#EncDataId-6" /><xenc:DataReference URI="#EncDataId-8" /><xenc:DataReference URI="#EncDataId-10" /></xenc:ReferenceList></xenc:EncryptedKey><wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-7CFE4983B6C72B4A5413770772100001">MIICTzCCAbigAwIBAgIESy9O5zANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQGEwJMSzEQMA4GA1UECBMHV2VzdGVybjEQMA4GA1UEBxMHQ29sb21ibzEPMA0GA1UEChMGQXBhY2hlMRAwDgYDVQQLEwdSYW1wYXJ0MRYwFAYDVQQDEw1TYW1wbGUgQ2xpZW50MB4XDTA5MTIyMTEwMzMxMVoXDTM3MDUwNzEwMzMxMVowbDELMAkGA1UEBhMCTEsxEDAOBgNVBAgTB1dlc3Rlcm4xEDAOBgNVBAcTB0NvbG9tYm8xDzANBgNVBAoTBkFwYWNoZTEQMA4GA1UECxMHUmFtcGFydDEWMBQGA1UEAxMNU2FtcGxlIENsaWVudDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAjBQM+kgC0Wm9hk9v4pjLSg5yK0Em2ulyDmODckWv4mZJ8YwJPVgqEIzwRiOnNBH3s+wFCw297zDsnEgDKSQrsPf1smVUOK/slyDPbqZ47Ewcs07nCPfNigncmpbcaluO3bMw9Oqj9VIYjrUHu5xCp2Fe39ZPbwOzLtAmT8b6iucCAwEAATANBgkqhkiG9w0BAQUFAAOBgQAnjPanrVjFVkxnhsj83RJA2tK//v99KpPf3do9VUI2yEgvBZUzH3q2jk3widwEcsJMHgbRr3VTFL7dNVdCYBcI1KiBY9SMa1XZ4RIHmw7gkJt1JTgjKBzfrout2z614KixRf4w7qkDacGxkNspXG/PSlh03Lfm5sb0vzH1aqBl3g==</wsse:BinarySecurityToken><xenc:EncryptedData Id="EncDataId-10" Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" /><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference><wsse:Reference URI="#EncKeyId-7CFE4983B6C72B4A5413770772104405" /></wsse:SecurityTokenReference>
</ds:KeyInfo><xenc:CipherData><xenc:CipherValue>7XAkRdmxD0favha8AdrnG+yMiwkHPfNqlUa7a+rc7xMUVb6mHFh73DJJst/AalnMQD1TlP2gscoq
rIG4OFoiHAl11Ix5I6Y29p9gGI4fqPQbZ+FlGlwQPsdVhZbu+1Hs7A2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Rf2iPi2lq0Nsly
mO08DAptdVdVnuexWMdkV1JT6uUs9B0NifjXyaQlHhsh7/TZE+mG7Y5STnMwSeeb8gNYaeKCgWc6
1XriKVhTZLziawbexpkVkYIA/3WQf0QQ5S1vRXlaVlDGUW9fBDLSCMKEosd+MeyM+xhljo2pJeNC
gnZAnxEU1cn6z+wHUbnNfcpkmAAH5DiENY5noxO0f89HyBFdDYVMlGDLiWzRGgqqBviu4QeCNVSq
PKUuejV1iRZC68Ld+ohlVzENpzAO4DA5oYNMbW3AKetVjGYzkxfUuqefJgTh1EzotxP/pJsW2yS9
4M7cSek/Hb64GnioYUsrbVQDylEAfsHm1lg+HTUpJu4inhRn3f6UkAP7DE/iu4C+NEk7m0S+W5dQ
VtomBmiamvEnJ8rIDsQA8ZVlplIvxF8mgFePE1gQ3rJmyAmVld69q0u0GjmViUvcR6JkHI2odglm
SotUQfZ+dzTl3gAOlMm8quCdRCMaaDrrAysZ7l6ZGXI/ByHISjyy5RtXriO6MW5xkm51XV59MnMC
G6YGBc54WaKyrraaKxcSYd6NfR9iTfpOcNpvsIIa4Y5rYrPoM4Xw1gSevWjL2nEgK87t84cRA2ve
OJc+iWDQ/Gu1/+9VZQ9TG0jy/nWbza+rjruX/lQuDlr+uCamWsLhmq+lksPs4CdhnDPB8iZxz69j
u1LPjClKavq1kZIUHyM9raP1Kdfexp6QSHp3WW7WNcBHvzlgOKnGV6537sXEvc48NFH9a5kerNEt
9I3H+dY0CQT+i9fAOnFgQuCnFgAWddA4AHZNCkPRiLtaQXI4c38tnovT8T3won5Ll63t6hSC5Nkp
orGjAPV/11XwpFlkUyuTxZA6tAnwDwKdqimEtMz2QA==</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></wsse:Security><wsa:MessageID>urn:uuid:4F87E9AF69C704CCA11377077209209</wsa:MessageID><wsse11:EncryptedHeader xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="EncHeader-7"><xenc:EncryptedData Id="EncDataId-6" Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" /><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Reference URI="#EncKeyId-7CFE4983B6C72B4A5413770772104405" /></wsse:SecurityTokenReference>
</ds:KeyInfo><xenc:CipherData><xenc:CipherValue>nhAZjy24ik8V9MyNAj7dxnF5fyYmUOSiHSMc4GD30nSdQtfrlHoghfm3BVZyrDP6f/ad5EGXAnxR
ELePFJ15YgadLq479I8CSOCQ87G6YHkkQzTVLP1er52GzF4owuycaiclH13ezQk6wTxXdH5EqxcA
r+b7/u98TnxNHBAcewDNIf9DGzvzgE/GPzhStJCXGkkbLtStsGWlCy3IGL98Gdm/Z0MRMFtK2+v6
4Jlv9gny52Oey3V1JuGN1s1LXRpq+DNqfE50iufK2eviG9j3y6KUEjWYeh4K4CZH5ukBoAQ=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></wsse11:EncryptedHeader><wsse11:EncryptedHeader xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="EncHeader-9"><xenc:EncryptedData Id="EncDataId-8" Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" /><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Reference URI="#EncKeyId-7CFE4983B6C72B4A5413770772104405" /></wsse:SecurityTokenReference>
</ds:KeyInfo><xenc:CipherData><xenc:CipherValue>pr4XBo9e2wuon54JD//BGTFG/A9pHyUW4dZlsNtQmJfNbvQPG3s9WQ6kCbziXFH0KHCgRWd5eEcU
0mQ/85ABSFoGC2QWp+YZWFJYzoEMyUe4fWYqss0r4x3hqalVVd4Wl8/SNOApdedHF347nOrv339J
+brsNIpNQ6a/zNSZ9v0zmu0lP5ncLWzL/3NXjI4ehJ5ivK+sPd1tToJsiv4NPA==</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></wsse11:EncryptedHeader></soapenv:Header><soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id-174639979"><xenc:EncryptedData Id="EncDataId-5" Type="http://www.w3.org/2001/04/xmlenc#Content"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" /><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Reference URI="#EncKeyId-7CFE4983B6C72B4A5413770772104405" /></wsse:SecurityTokenReference>
</ds:KeyInfo><xenc:CipherData><xenc:CipherValue>MnArlwOp3ShQybEr74wvYmr78v5GAdRBte+SGdRziMjQvSKYyliEbOH9y1f67b6HvwoDyB+skwoD
b9bRJYX8XUtWHYTvzZGVaZovQDfA5oRkQNiEMdARu1q3fxANoioe55PJvkg6xtszIpWETUn7J5DC
9HVUhe5UJh58WP254zIoKjmKccru5eJkIad5mYDe5hSauf3DKoU8QyldXhejlsM1dh3PWQtKvg0f
eI2tzL5Gjz0Hn8NhCJ36BeOjrnND9AZfgIl006qJk9v0sComLN0uFi/FFeCMN2DTR2fm8vQposBv
Er4WQqhcoKfYYDEOrv3guWM1/5GqdJ3Ua5K7mpwq1pOgPA2KLg9mZFP+0OtpAiQdmPEyEoe/2Dp6
fdRAZid9lWedCx8OQqcNUmhaHzOFSNCtnMizYhb34XJUfOOLMZuXQorOdjclNjTShhFt</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData></soapenv:Body></soapenv:Envelope>

Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EncryptedHeader

Ravinderjit
Any comment on this from Axis2 experts ?
Loading...