Returns the principal that was sent to the server during
handshaking in the original connection that retrieved the
network resource.
Returns: the principal sent to the server. Returns an X500Principal
of the end-entity certificate for X509-based cipher suites, and
KerberosPrincipal for Kerberos cipher suites. If no principal was
sent, then null is returned.
See also:
getLocalCertificateChain(), getPeerPrincipal()