Tuesday, September 24, 2013

What is difference between SSL & SSH - SSL & TSL

Good explanation 
http://yet.another.linux-nerd.com/blog/difference-between-ssh-and-ssl

A bit of discussion
http://stackoverflow.com/questions/723152/difference-between-ssh-and-ssl

Some more such acronyms...
http://www.rebex.net/kb/secure-ftp/default.aspx


Good information on SSL Vs TSL ( Very interesting to understand Poodle vulnerability ! )
https://luxsci.com/blog/ssl-versus-tls-whats-the-difference.html


http://www.sans.org/reading-room/whitepapers/protocols/ssl-tls-beginners-guide-1029

SSL - Mutual Authentication
-------------------------------------------
http://www.codeproject.com/Articles/326574/An-Introduction-to-Mutual-SSL-Authentication

Saturday, September 21, 2013

Aggregation Vs Composition - OOD Concept

I have a very basic example to understand aggregation / composition.

And over a time, thinking about from somewhere I have found a very profound example to explain both concept.

Composition - A composition in which objects forms an entity and that entity cant remain complete if one of the object is removed.

Example : To understand composition, think of a medicinal tablet, which might be made of many elements in various proposition but you cant remove one easily and if you remove one it's wont be same tablet / medicine anymore.

Aggregation - A collection of objects which are loosely connected and can be easily replaces / removed and can be used separately and can be modified easily.

Example : There can be many but I think a car is best one ! One can modify anything in car / replace objects. One can change tire / change color, change wipers / even change engines. And still car will work ! And everything is so loosely coupled that it can be changed easily.

Wednesday, September 18, 2013

Websphere Virtual Portal - Modify for Virtual Host Name


http://www-10.lotus.com/ldd/portalwiki.nsf/xpDocViewer.xsp?lookupName=IBM+WebSphere+Portal+7+Product+Documentation#action=openDocument&res_title=Virtual_portals_reference_wp7&content=pdcontent


Using a new host name for an existing virtual portal.

If you want to use a new host name for an existing virtual portal, proceed by the following steps:
Export the contents of the virtual portal by using the XML configuration interface.                                 
/opt/IBM/PortalServer/bin/xmlaccess.sh -in Export.xml -user wpadmin -pwd xxxxx -url http://localhost:<portalPortalNumber>/<yourportalContext>/config/<yourVPContext> -out ExportVP_out.xml
 
Delete the virtual portal.


Clean up references to the deleted virtual portal by using the Task.xml script of the XML configuration interface.

Create a new empty virtual portal by using the configuration task create-virtual-portal. Use the context of the deleted virtual portal, and specify the new host name as required.

Import the contents to the new virtual portal by using the XML configuration interface.

 ----------------------------
  [wsadmin] VirtualPortal:
  [wsadmin] Title:       Institutions
  [wsadmin] Description:
  [wsadmin] Realm:       defaultWIMFileBasedRealm
  [wsadmin] Object ID:   Z18_K99SEH6510KN80IF6GO7973481
  [wsadmin] Hostname:    <cannot be retrieved>
  [wsadmin] Context:     institutions
  [wsadmin] Short ID:    -14001
  [wsadmin] _____________________________________________________






Portal Servlet filter - To filter each incoming request / outgoing response from portal server

Portal Servlet filter - To filter each incoming request / outgoing response from portal server
 **********************************************************************

http://www.ibm.com/developerworks/websphere/library/techarticles/0707_lynn/0707_lynn.html


I used this one to create a portal servlet filter to add a response header on each response.

For a specific issue with JSF components being rendered in IE-10, which rurns the validation on although no validation is attached to the input text boxes, on submit all boxes shows compulsory validation.

//Hardik