Pradeep Loganathan

Distributed
posts - 17 , comments - 74 , trackbacks - 1

WS-Security

WS-Trust -- 7
A SOAP message using WS-Security is protected by security tokens. These security tokens can be obtained in a variety of ways such as username/password or x509 certificate, Kerberos e.t.c. Even though the SOAP message is now protected the recipient may not be able to use the token due to 1. Security token format incompatibility: The recipient may find the token format incompatible. 2. Security token trust: Even if the recipient can understand and process the token the recipient may be unable to map ......

Posted On Friday, August 25, 2006 12:11 PM | Comments (0) | Filed Under [ WS-Security ]

SAML: Portable Identity, Authorization & Authentication - 6
As web services are increasingly crossing organizational and domain boundaries the problems of representing identity and its associated attributes across these boundaries is becoming more essential. A system is secure if it knows all its users and all information is secure if the information is intact, non-tampered and can be proven to be confidential. A payroll processing service may need to further interact with the service implemented by the HR systems and maybe with an external Banking service ......

Posted On Tuesday, August 8, 2006 7:18 AM | Comments (0) | Filed Under [ WS-Security ]

XML Encryption - Sample - 5
using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Xml; using System.Security; using System.Security.Cryptography; using System.Security.Cryptograph... namespace XMLDIGSIG { class Class1 { static void Main(string[] args) { TripleDES tdes = new TripleDESCryptoServiceProvi... EncryptXML(tdes); DecryptXML(tdes); Console.ReadKey(); } public static void EncryptXML(TripleDES tdes) { try { XmlDocument doc = new XmlDocument(); doc.Load("xmlfile1.xml"); ......

Posted On Monday, August 7, 2006 8:03 AM | Comments (0) | Filed Under [ WS-Security ]

XML Encryption - 4
XML encryption is used to ensure confidentiality of XML documents. With XML encryption you can either encrypt the whole XML document or just portions of the document. The .net implementation of XML encryption is totally w3c compliant. XML encryption scores over transport level security in two areas by ensuring that only certain portions of the document can be encrypted and also ensuring that the document is secure through its lifetime ......

Posted On Monday, August 7, 2006 8:02 AM | Comments (0) | Filed Under [ WS-Security ]

XML Signature Sample
using System.IO; using System.Xml; using System.Security; using System.Security.Cryptography; using System.Security.Cryptograph... namespace XMLDIGSIG { class Program { static void Main(string[] args) { SignXML(); ValidateXML(); Console.ReadKey(); } private static void SignXML() { XmlDocument doc = new XmlDocument(); doc.Load("xmlfile1.xml"); SignedXml sx = new SignedXml(doc); RSA Key = new RSACryptoServiceProvider(); sx.KeyInfo = new KeyInfo(); sx.KeyInfo.AddClause(new RSAKeyValue(Key)); sx.SigningKey ......

Posted On Thursday, August 3, 2006 5:23 AM | Comments (0) | Filed Under [ WS-Security ]

Powered by: