al</h3>
<div class="member-signature"><span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/security/Principal.html" title="class or interface in java.security" class="external-link">Principal</a></span>&nbsp;<span class="element-name">getUserPrincipal</span>()</div>
<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 <code>nul