Certificate Authority issue

I had a question about digital Certificate Authority. Are there any articles/sample code in java out there that shows me how to store a received certificate and to check some of the attributes of the received certificate? Please let me know.