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 caller has the specified role.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.ba