jglobus/JGlobus — pull request #54 by kofemann (2012-12-12 14:06:45+00:00)
Title: small cleanup in CertificateIOUtil

The CertificateIOUtil.nameHash() accepts Principal as an argument and later on tries to detect argument's type by choosing between X500Principal or X509Name. Nevertheless X509Name doesn't implements Principal interface and never can be passes. This cleanup introduces introduces two new methods nameHash(X509Name subjectDN) and nameHash(X500Principal subjectDN) as well as uses X509Certificate.getSubjectX500Principal() instead of X509Certificate.getSubjectDN() as javadoc suggests.

Tigran.