This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to sign the BinarySecurityToken using Ramapart 1.6.2 and axis2 1.6.2  RSS feed

 
T Ashok
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Am trying to sign the Timestamp , body and BinarySecurityToken using Axis2 1.6.2 and Rampart 1.6.2.

<items>Timestamp Signature</items>
<user>test</user>
<passwordCallbackClass>com.PasswordHandler</passwordCallbackClass>
<signaturePropFile>client.properties</signaturePropFile>
<signatureParts>{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;
{Element}{http://schemas.xmlsoap.org/soap/envelope/} Body ;
{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd} BinarySecurityToken
</signatureParts>
<signatureKeyIdentifier>DirectReference</signatureKeyIdentifier>
<signatureParts></signatureParts>
<items>

but am getting error as below

org.apache.ws.security.WSSecurityException: General security error (WSEncryptBody/WSSignEnvelope: Element to encrypt/sign not found: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd, BinarySecurityToken)


please help for solution whether this is achievable in Rampart.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!