X509Certificate.getSubjectX500Principal

Returns the subject (subject distinguished name) value from the certificate as an {@code X500Principal}. If the subject value is empty, then the {@code getName()} method of the returned {@code X500Principal} object returns an empty string (""). <p> It is recommended that subclasses override this method.

@return an {@code X500Principal} representing the subject distinguished name @since 1.4

Meta