Category: java


X.509 Certificate Validation in Java: Build and Verify Chain and Verify CLR with Bouncy Castle

December 1, 2009
For one of my recent projects I needed to implement X.509 certificate validation library that validates a certificate across given set of trusted root certificated and a set of intermediate certificate. Initially I thought this is a problem that has already out-of-the-box solution in BouncyCastle but the CRL verification was found to be unpleasant to

Introduction to Programming with Java Book – New Web Site

October 20, 2009
My open-source book “Introduction to Programming with Java” has new Web site: The book is written by a team of 30 authors managed by me and is an excellent tutorial for beginners. It is a book about the fundamentals of computer programming, data strustures, algorithms and logical thinking, not just a Java book. The

Java2Days Conference: 8-9 October 2009 in Bulgaria

September 22, 2009
All Java and Java EE developers are invited to the unique for the Balkans and Eastern Europe conference on Java technologies called Java2Days. At the conference distinguished speakers will talk in Sofia about Java, Java EE 6, JBoss, EJB 3.1, Spring Framework, JPA, OSGi, GWT, JSF, jBPM, Wicket, JRockit, cloud computing and other hot technologies.

Disable Certificate Validation in Java SSL Connections

July 16, 2009
By design when we open an SSL connection in Java (e.g. through“https://….”)) the JSSE implementation of the SSL protocol performs few validations to ensure the requested host is not fake. This involves validation of the server’s X.509 certificate with the PKIX algorithm and checking the host name agains the certificate subject. If the SSL

JAX-RS, @Path, @PathParam and Optional Parameters

July 15, 2009
In a recent Java project I needed to develop and provide to external clients a RESTful Web Services interface to an internal system. After some research I found that using JAX-RS and its open-source implementation Jersey with Spring and Hibernate as back-end will be great technologies stack for this project. Seems easy but unfortunately I

The Book “Introduction to Programming with Java” is Finally Published

December 26, 2008
Recently my team of 20 authors and few editors working on creating a contemporary book about the fundamentals of computer programming, data structures and algorithms is ready with the public official release of the book: The book “Introduction to Programming with Java” focuses on the fundamentals of computer programming, logical, algorithmical thinking, problem solving,

Java SWING Error Dialog with Exception Details

November 30, 2008
I use SWING for long time but I am amazed how slowly this GUI framework evolve and how far is it comparing to Windows Forms, WPF and Flex. One of the small missing things in Swing is that there is not standard way to display an error message with Exception stacktrace. So I created such

Extract All Classes Loaded in the JVM into a Single JAR

August 27, 2008
Today I needed to optimize the file size for a commercial Java applet (Web form signer) that my team is developing in the last month. We use few external libraries (Bouncy Castle Crypto API and few others) and these libraries are above 2 MB in several JAR files. If we were developing server side application,