WS-Security Core Specification
The current version of WS-Security core specification is 1.1 which can be downloaded here- Multiple security token formats
- Multiple trust domains
- Multiple signature formats
- Multiple encryption technologies
- End-to-end message content security and not just transport-level security
WS-security supports the following namespaces:
- http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity263secext-1.0.xsd
- http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity265utility-1.0.xsd
- http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd
All the information about security is put in SOAP header in a security element
<soap:Envelope> <soap:Header> ... <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:actor="..." soap:mustUnderstand="..."> <!-- All the security information goes here. actor attribute tells who will process the request. mustUnderstand attribute signifies that this header should be processed. If unable to process SOAP fault should be raised.--> </wsse:Security> ... </soap:Header> ... </soap:Envelope>
Sending Credentials
The user credentials can be passed as username and passwords.
<wsse:Security> <wsse:UsernameToken> <wsse:Username>oyejava</wsse:Username> <wsse:Password>oyejava</wsse:Password>UsernameToken> </wsse:Security>
The user credentials can be sent in encoded format also using BinarySecurityToken
<BinarySecurityToken Id=... EncodingType=... ValueType=.../>
- Id - Label for the security token. It is an optional field.
- ValueType - Defines the value type like X509 certificate.
- EncodingType - Encoding format like wsse:Base64Binary
Security Token Reference
Let's now understand security token reference. It helps us in refering to the different part of the SOAP message using id.
<soap:Envelope xmlns="..."> <soap:Header> <wsse:Security xm lns:wsse="..."> <ds:Signature> ... <ds:KeyInfo> #FF0000:<wsse:SecurityTokenReference>Reference URI="soapBody"/> </wsse:SecurityTokenReference> </ds:KeyInfo> </ds:Signature> </wsse:Security> </soap:Header> <soap:Body #FF0000:Id="soapBody">~~ ... </soap:Body> </soap:Envelope>
Back To Java Home
Back To Home
Sidebar
Last wiki comments
- AOP: Thanks
- Lalit Bhatt: Superb Collection
- Lalit Bhatt: J2EE training
- Introduction to ORM: timberland shoes
- Introduction to ORM: jordan shoes
- Introduction to ORM: nike air max
- Pune Tourist Spots: KONARK PARK CLOSED
- jQuery Form Validations: Jquery Developer
- Spring Introduction: RG
- SOAP: Re: Assertion
Sidebar
Random Pages
- What markets work on?
- Why projects fail?
- Bharat Band - Jai ho
- The concept of Nation
- Don't hide complexity if it cannot be handled in a robustway
Last blog post comments
-
Bharat Band - Jai ho: How do we protest?
Wed 18 of Aug., 2010 13:13 IST
-
Divided by Destiny: Contact
Fri 23 of July, 2010 16:02 IST
-
Future of Java: thesis writing
Sat 17 of July, 2010 01:50 IST
-
Hang till Death Mr. Kasab: some change
Mon 28 of June, 2010 16:03 IST
-
God Religion : Why we are confused?: Re: Is GOD Necessary?
Tue 15 of June, 2010 17:29 IST
-
God Religion : Why we are confused?: Is GOD Necessary?
Tue 15 of June, 2010 13:06 IST
-
The reason in religion: good
Wed 10 of Mar., 2010 18:30 IST
-
The confusion of Design Patterns: I think at macro level you are right...
Tue 23 of Feb., 2010 03:31 IST
-
The Indian Municipality: Comment
Fri 22 of Jan., 2010 13:20 IST
-
What Government should do?: Re: Review of the Indian Law and Order and Justice Dispensation regime.
Fri 22 of Jan., 2010 13:16 IST
Post new comment