/docs.oracle.com/javase/8/docs/api/java/security/Principal.html?is-external=true" title="class or interface in java.security">Principal</a>&nbsp;getUserPrincipal&#8203;()</pre>
<div class="block">Returns a <code>java.security.Principal</code> object containing the
 name of the current authenticated user. If the user
 has not been authenticated, the method returns null.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <code>java.security.Principal</code> containing the name
         of the