va.security" class="externalLink">Principal</a>&nbsp;getPrincipal()</pre>
<div class="block">The <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/security/Principal.html?is-external=true" title="class or interface in java.security" class="externalLink"><code>Principal</code></a> of the user to authenticate.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/security/Principal.html?is-exter