/11/docs/api/java.base/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang" class="externalLink">IllegalStateException</a></pre>
<div class="block">Obtain the <code>java.security.Principal</code> that identifies the caller.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <code>Principal</code> object that identifies the caller. This method never returns <code>null</code>.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href=