getSubject() method

Retrieves the subject of certificate in distinguished name format.

Syntax

String getSubject ()

Returns

Subject of the certificate