.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></pre>
<div class="block">Test if the caller has a given security role.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>roleName</code> - The name of the security role. The role must be one of the security roles that is defined in the
 deployment descriptor.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if the calle