| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_21) on Thu May 30 15:02:17 PDT 2013 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>ModularRealmAuthorizer (Apache Shiro 1.2.2 API)</title> |
| <meta name="date" content="2013-05-30"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ModularRealmAuthorizer (Apache Shiro 1.2.2 API)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ModularRealmAuthorizer.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/shiro/authz/HostUnauthorizedException.html" title="class in org.apache.shiro.authz"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/shiro/authz/ModularRealmAuthorizer.html" target="_top">Frames</a></li> |
| <li><a href="ModularRealmAuthorizer.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.shiro.authz</div> |
| <h2 title="Class ModularRealmAuthorizer" class="title">Class ModularRealmAuthorizer</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.shiro.authz.ModularRealmAuthorizer</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a>, <a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission">PermissionResolverAware</a>, <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolverAware</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.38">ModularRealmAuthorizer</a> |
| extends <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> |
| implements <a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a>, <a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission">PermissionResolverAware</a>, <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolverAware</a></pre> |
| <div class="block">A <tt>ModularRealmAuthorizer</tt> is an <tt>Authorizer</tt> implementation that consults one or more configured |
| <a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm"><code>Realm</code></a>s during an authorization operation.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>0.2</dd></dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission">PermissionResolver</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#permissionResolver">permissionResolver</a></strong></code> |
| <div class="block">A PermissionResolver to be used by <em>all</em> configured realms.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm">Realm</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#realms">realms</a></strong></code> |
| <div class="block">The realms to consult during any authorization check.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolver.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolver</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#rolePermissionResolver">rolePermissionResolver</a></strong></code> |
| <div class="block">A RolePermissionResolver to be used by <em>all</em> configured realms.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#ModularRealmAuthorizer()">ModularRealmAuthorizer</a></strong>()</code> |
| <div class="block">Default no-argument constructor, does nothing.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#ModularRealmAuthorizer(java.util.Collection)">ModularRealmAuthorizer</a></strong>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm">Realm</a>> realms)</code> |
| <div class="block">Constructor that accepts the <code>Realm</code>s to consult during an authorization check.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#applyPermissionResolverToRealms()">applyPermissionResolverToRealms</a></strong>()</code> |
| <div class="block">Sets the internal <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getPermissionResolver()"><code>getPermissionResolver()</code></a> on any internal configured |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getRealms()"><code>Realms</code></a> that implement the <a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolverAware</code></a> interface.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#applyRolePermissionResolverToRealms()">applyRolePermissionResolverToRealms</a></strong>()</code> |
| <div class="block">Sets the internal <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getRolePermissionResolver()"><code>getRolePermissionResolver()</code></a> on any internal configured |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getRealms()"><code>Realms</code></a> that implement the <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>RolePermissionResolverAware</code></a> interface.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#assertRealmsConfigured()">assertRealmsConfigured</a></strong>()</code> |
| <div class="block">Used by the <a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz"><code>Authorizer</code></a> implementation methods to ensure that the <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setRealms(java.util.Collection)"><code>realms</code></a> |
| has been set.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkPermission(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)">checkPermission</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a> permission)</code> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>isPermitted(permission)</code></a>, throws |
| an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkPermission(org.apache.shiro.subject.PrincipalCollection, java.lang.String)">checkPermission</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> permission)</code> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>isPermitted(permission)</code></a>, throws |
| an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkPermissions(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)">checkPermissions</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> permissions)</code> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>isPermitted(permission)</code></a> for |
| <em>all</em> the given Permissions, throws |
| an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkPermissions(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)">checkPermissions</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... permissions)</code> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"><code>isPermitted(permission)</code></a>, |
| throws an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)">checkRole</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> role)</code> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>hasRole(role)</code></a>, throws |
| an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkRoles(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)">checkRoles</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> roles)</code> |
| <div class="block">Calls {@link #checkRoles(PrincipalCollection principals, String...</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkRoles(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)">checkRoles</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... roles)</code> |
| <div class="block">Calls <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>checkRole</code></a> for each role specified.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission">PermissionResolver</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getPermissionResolver()">getPermissionResolver</a></strong>()</code> |
| <div class="block">Returns the PermissionResolver to be used on <em>all</em> configured realms, or <code>null</code (the default) |
| if all realm instances will each configure their own permission resolver.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm">Realm</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getRealms()">getRealms</a></strong>()</code> |
| <div class="block">Returns the realms wrapped by this <code>Authorizer</code> which are consulted during an authorization check.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolver.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolver</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getRolePermissionResolver()">getRolePermissionResolver</a></strong>()</code> |
| <div class="block">Returns the RolePermissionResolver to be used on <em>all</em> configured realms, or <code>null</code (the default) |
| if all realm instances will each configure their own permission resolver.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasAllRoles(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)">hasAllRoles</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> roleIdentifiers)</code> |
| <div class="block">Returns <code>true</code> iff any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>hasRole(org.apache.shiro.subject.PrincipalCollection, String)</code></a> call returns <code>true</code> for |
| <em>all</em> roles specified, <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)">hasRole</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> roleIdentifier)</code> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>hasRole(org.apache.shiro.subject.PrincipalCollection, String)</code></a> call returns <code>true</code>, |
| <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRoles(org.apache.shiro.subject.PrincipalCollection, java.util.List)">hasRoles</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> roleIdentifiers)</code> |
| <div class="block">Calls <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>hasRole(org.apache.shiro.subject.PrincipalCollection, String)</code></a> for each role name in the specified |
| collection and places the return value from each call at the respective location in the returned array.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.util.List)">isPermitted</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> permissions)</code> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.util.List)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, List)</code></a> call returns <code>true</code>, |
| <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)">isPermitted</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a> permission)</code> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)</code></a> call returns <code>true</code>, |
| <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)">isPermitted</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... permissions)</code> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"><code>isPermittedAll(org.apache.shiro.subject.PrincipalCollection, String...)</code></a> call returns |
| <code>true</code>, <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)">isPermitted</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> permission)</code> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, String)</code></a> returns <code>true</code>, |
| <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)">isPermittedAll</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> permissions)</code> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)</code></a> call returns <code>true</code> |
| for <em>all</em> of the specified Permissions, <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)">isPermittedAll</a></strong>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... permissions)</code> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, String)</code></a> call returns <code>true</code> |
| for <em>all</em> of the specified string permissions, <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setPermissionResolver(org.apache.shiro.authz.permission.PermissionResolver)">setPermissionResolver</a></strong>(<a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission">PermissionResolver</a> permissionResolver)</code> |
| <div class="block">Sets the specified <a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolver</code></a> on <em>all</em> of the wrapped realms that |
| implement the <a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolverAware</code></a> interface.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setRealms(java.util.Collection)">setRealms</a></strong>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm">Realm</a>> realms)</code> |
| <div class="block">Sets the realms wrapped by this <code>Authorizer</code> which are consulted during an authorization check.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setRolePermissionResolver(org.apache.shiro.authz.permission.RolePermissionResolver)">setRolePermissionResolver</a></strong>(<a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolver.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolver</a> rolePermissionResolver)</code> |
| <div class="block">Sets the specified <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolver.html" title="interface in org.apache.shiro.authz.permission"><code>RolePermissionResolver</code></a> on <em>all</em> of the wrapped realms that |
| implement the <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolverAware</code></a> interface.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="realms"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>realms</h4> |
| <pre>protected <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm">Realm</a>> <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.43">realms</a></pre> |
| <div class="block">The realms to consult during any authorization check.</div> |
| </li> |
| </ul> |
| <a name="permissionResolver"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>permissionResolver</h4> |
| <pre>protected <a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission">PermissionResolver</a> <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.49">permissionResolver</a></pre> |
| <div class="block">A PermissionResolver to be used by <em>all</em> configured realms. Leave <code>null</code> if you wish |
| to configure different resolvers for different realms.</div> |
| </li> |
| </ul> |
| <a name="rolePermissionResolver"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>rolePermissionResolver</h4> |
| <pre>protected <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolver.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolver</a> <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.55">rolePermissionResolver</a></pre> |
| <div class="block">A RolePermissionResolver to be used by <em>all</em> configured realms. Leave <code>null</code> if you wish |
| to configure different resolvers for different realms.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="ModularRealmAuthorizer()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ModularRealmAuthorizer</h4> |
| <pre>public <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.60">ModularRealmAuthorizer</a>()</pre> |
| <div class="block">Default no-argument constructor, does nothing.</div> |
| </li> |
| </ul> |
| <a name="ModularRealmAuthorizer(java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ModularRealmAuthorizer</h4> |
| <pre>public <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.69">ModularRealmAuthorizer</a>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm">Realm</a>> realms)</pre> |
| <div class="block">Constructor that accepts the <code>Realm</code>s to consult during an authorization check. Immediately calls |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setRealms(java.util.Collection)"><code>setRealms(realms)</code></a>.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>realms</code> - the realms to consult during an authorization check.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getRealms()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRealms</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm">Realm</a>> <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.78">getRealms</a>()</pre> |
| <div class="block">Returns the realms wrapped by this <code>Authorizer</code> which are consulted during an authorization check.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the realms wrapped by this <code>Authorizer</code> which are consulted during an authorization check.</dd></dl> |
| </li> |
| </ul> |
| <a name="setRealms(java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setRealms</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.87">setRealms</a>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/realm/Realm.html" title="interface in org.apache.shiro.realm">Realm</a>> realms)</pre> |
| <div class="block">Sets the realms wrapped by this <code>Authorizer</code> which are consulted during an authorization check.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>realms</code> - the realms wrapped by this <code>Authorizer</code> which are consulted during an authorization check.</dd></dl> |
| </li> |
| </ul> |
| <a name="getPermissionResolver()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPermissionResolver</h4> |
| <pre>public <a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission">PermissionResolver</a> <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.101">getPermissionResolver</a>()</pre> |
| <div class="block">Returns the PermissionResolver to be used on <em>all</em> configured realms, or <code>null</code (the default) |
| if all realm instances will each configure their own permission resolver.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the PermissionResolver to be used on <em>all</em> configured realms, or <code>null</code (the default) |
| if realm instances will each configure their own permission resolver.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>1.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setPermissionResolver(org.apache.shiro.authz.permission.PermissionResolver)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPermissionResolver</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.116">setPermissionResolver</a>(<a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission">PermissionResolver</a> permissionResolver)</pre> |
| <div class="block">Sets the specified <a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolver</code></a> on <em>all</em> of the wrapped realms that |
| implement the <a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolverAware</code></a> interface. |
| <p/> |
| Only call this method if you want the permission resolver to be passed to all realms that implement the |
| <code>PermissionResolver</code> interface. If you do not want this to occur, the realms must |
| configure themselves individually (or be configured individually).</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html#setPermissionResolver(org.apache.shiro.authz.permission.PermissionResolver)">setPermissionResolver</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission">PermissionResolverAware</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>permissionResolver</code> - the permissionResolver to set on all of the wrapped realms that implement the |
| <a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolverAware</code></a> interface.</dd></dl> |
| </li> |
| </ul> |
| <a name="applyPermissionResolverToRealms()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>applyPermissionResolverToRealms</h4> |
| <pre>protected void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.133">applyPermissionResolverToRealms</a>()</pre> |
| <div class="block">Sets the internal <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getPermissionResolver()"><code>getPermissionResolver()</code></a> on any internal configured |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getRealms()"><code>Realms</code></a> that implement the <a href="../../../../org/apache/shiro/authz/permission/PermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolverAware</code></a> interface. |
| <p/> |
| This method is called after setting a permissionResolver on this ModularRealmAuthorizer via the |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setPermissionResolver(org.apache.shiro.authz.permission.PermissionResolver)"><code>setPermissionResolver</code></a> method. |
| <p/> |
| It is also called after setting one or more realms via the <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setRealms(java.util.Collection)"><code>setRealms</code></a> method to allow these |
| newly available realms to be given the <code>PermissionResolver</code> already in use.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.0</dd></dl> |
| </li> |
| </ul> |
| <a name="getRolePermissionResolver()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRolePermissionResolver</h4> |
| <pre>public <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolver.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolver</a> <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.153">getRolePermissionResolver</a>()</pre> |
| <div class="block">Returns the RolePermissionResolver to be used on <em>all</em> configured realms, or <code>null</code (the default) |
| if all realm instances will each configure their own permission resolver.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the RolePermissionResolver to be used on <em>all</em> configured realms, or <code>null</code (the default) |
| if realm instances will each configure their own role permission resolver.</dd><dt><span class="strong">Since:</span></dt> |
| <dd>1.0</dd></dl> |
| </li> |
| </ul> |
| <a name="setRolePermissionResolver(org.apache.shiro.authz.permission.RolePermissionResolver)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setRolePermissionResolver</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.168">setRolePermissionResolver</a>(<a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolver.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolver</a> rolePermissionResolver)</pre> |
| <div class="block">Sets the specified <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolver.html" title="interface in org.apache.shiro.authz.permission"><code>RolePermissionResolver</code></a> on <em>all</em> of the wrapped realms that |
| implement the <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolverAware</code></a> interface. |
| <p/> |
| Only call this method if you want the permission resolver to be passed to all realms that implement the |
| <code>RolePermissionResolver</code> interface. If you do not want this to occur, the realms must |
| configure themselves individually (or be configured individually).</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html#setRolePermissionResolver(org.apache.shiro.authz.permission.RolePermissionResolver)">setRolePermissionResolver</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission">RolePermissionResolverAware</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>rolePermissionResolver</code> - the rolePermissionResolver to set on all of the wrapped realms that implement the |
| <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>RolePermissionResolverAware</code></a> interface.</dd></dl> |
| </li> |
| </ul> |
| <a name="applyRolePermissionResolverToRealms()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>applyRolePermissionResolverToRealms</h4> |
| <pre>protected void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.186">applyRolePermissionResolverToRealms</a>()</pre> |
| <div class="block">Sets the internal <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getRolePermissionResolver()"><code>getRolePermissionResolver()</code></a> on any internal configured |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#getRealms()"><code>Realms</code></a> that implement the <a href="../../../../org/apache/shiro/authz/permission/RolePermissionResolverAware.html" title="interface in org.apache.shiro.authz.permission"><code>RolePermissionResolverAware</code></a> interface. |
| <p/> |
| This method is called after setting a rolePermissionResolver on this ModularRealmAuthorizer via the |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setRolePermissionResolver(org.apache.shiro.authz.permission.RolePermissionResolver)"><code>setRolePermissionResolver</code></a> method. |
| <p/> |
| It is also called after setting one or more realms via the <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setRealms(java.util.Collection)"><code>setRealms</code></a> method to allow these |
| newly available realms to be given the <code>RolePermissionResolver</code> already in use.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>1.0</dd></dl> |
| </li> |
| </ul> |
| <a name="assertRealmsConfigured()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>assertRealmsConfigured</h4> |
| <pre>protected void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.205">assertRealmsConfigured</a>() |
| throws <a href="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></pre> |
| <div class="block">Used by the <a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz"><code>Authorizer</code></a> implementation methods to ensure that the <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#setRealms(java.util.Collection)"><code>realms</code></a> |
| has been set. The default implementation ensures the property is not null and not empty.</div> |
| <dl><dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if the <tt>realms</tt> property is configured incorrectly.</dd></dl> |
| </li> |
| </ul> |
| <a name="isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPermitted</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.219">isPermitted</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> permission)</pre> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, String)</code></a> returns <code>true</code>, |
| <code>false</code> otherwise.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)">isPermitted</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permission</code> - the String representation of a Permission that is being checked.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>true if the corresponding Subject/user is permitted, false otherwise.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/shiro/authz/Authorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>Authorizer.isPermitted(PrincipalCollection principals,Permission permission)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPermitted</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.235">isPermitted</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a> permission)</pre> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)</code></a> call returns <code>true</code>, |
| <code>false</code> otherwise.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)">isPermitted</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permission</code> - the permission that is being checked.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>true if the corresponding Subject/user is permitted, false otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPermitted</h4> |
| <pre>public boolean[] <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.251">isPermitted</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... permissions)</pre> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"><code>isPermittedAll(org.apache.shiro.subject.PrincipalCollection, String...)</code></a> call returns |
| <code>true</code>, <code>false</code> otherwise.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)">isPermitted</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permissions</code> - the String representations of the Permissions that are being checked.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>an array of booleans whose indices correspond to the index of the |
| permissions in the given list. A true value at an index indicates the user is permitted for |
| for the associated <tt>Permission</tt> string in the list. A false value at an index |
| indicates otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="isPermitted(org.apache.shiro.subject.PrincipalCollection, java.util.List)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPermitted</h4> |
| <pre>public boolean[] <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.268">isPermitted</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> permissions)</pre> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.util.List)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, List)</code></a> call returns <code>true</code>, |
| <code>false</code> otherwise.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.util.List)">isPermitted</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permissions</code> - the permissions that are being checked.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>an array of booleans whose indices correspond to the index of the |
| permissions in the given list. A true value at an index indicates the user is permitted for |
| for the associated <tt>Permission</tt> object in the list. A false value at an index |
| indicates otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPermittedAll</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.287">isPermittedAll</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... permissions)</pre> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, String)</code></a> call returns <code>true</code> |
| for <em>all</em> of the specified string permissions, <code>false</code> otherwise.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)">isPermittedAll</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permissions</code> - the String representations of the Permissions that are being checked.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>true if the user has all of the specified permissions, false otherwise.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/shiro/authz/Authorizer.html#isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)"><code>Authorizer.isPermittedAll(PrincipalCollection,Collection)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isPermittedAll</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.304">isPermittedAll</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> permissions)</pre> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>isPermitted(org.apache.shiro.subject.PrincipalCollection, Permission)</code></a> call returns <code>true</code> |
| for <em>all</em> of the specified Permissions, <code>false</code> otherwise.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#isPermittedAll(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)">isPermittedAll</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permissions</code> - the permissions to check.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>true if the user has all of the specified permissions, false otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="checkPermission(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkPermission</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.320">checkPermission</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> permission) |
| throws <a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></pre> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>isPermitted(permission)</code></a>, throws |
| an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#checkPermission(org.apache.shiro.subject.PrincipalCollection, java.lang.String)">checkPermission</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permission</code> - the String representation of the Permission to check.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></code> - if the user does not have the permission.</dd></dl> |
| </li> |
| </ul> |
| <a name="checkPermission(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkPermission</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.331">checkPermission</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a> permission) |
| throws <a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></pre> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>isPermitted(permission)</code></a>, throws |
| an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#checkPermission(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)">checkPermission</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permission</code> - the Permission to check.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></code> - if the user does not have the permission.</dd></dl> |
| </li> |
| </ul> |
| <a name="checkPermissions(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkPermissions</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.342">checkPermissions</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... permissions) |
| throws <a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></pre> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"><code>isPermitted(permission)</code></a>, |
| throws an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#checkPermissions(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)">checkPermissions</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permissions</code> - the string representations of Permissions to check.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></code> - if the user does not have all of the given permissions.</dd></dl> |
| </li> |
| </ul> |
| <a name="checkPermissions(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkPermissions</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.356">checkPermissions</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> permissions) |
| throws <a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></pre> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#isPermitted(org.apache.shiro.subject.PrincipalCollection, org.apache.shiro.authz.Permission)"><code>isPermitted(permission)</code></a> for |
| <em>all</em> the given Permissions, throws |
| an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#checkPermissions(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)">checkPermissions</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>permissions</code> - the Permissions to check.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></code> - if the user does not have all of the given permissions.</dd></dl> |
| </li> |
| </ul> |
| <a name="hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasRole</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.370">hasRole</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> roleIdentifier)</pre> |
| <div class="block">Returns <code>true</code> if any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>hasRole(org.apache.shiro.subject.PrincipalCollection, String)</code></a> call returns <code>true</code>, |
| <code>false</code> otherwise.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)">hasRole</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>roleIdentifier</code> - the application-specific role identifier (usually a role id or role name).</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><tt>true</tt> if the corresponding subject has the specified role, <tt>false</tt> otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="hasRoles(org.apache.shiro.subject.PrincipalCollection, java.util.List)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasRoles</h4> |
| <pre>public boolean[] <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.385">hasRoles</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> roleIdentifiers)</pre> |
| <div class="block">Calls <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>hasRole(org.apache.shiro.subject.PrincipalCollection, String)</code></a> for each role name in the specified |
| collection and places the return value from each call at the respective location in the returned array.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#hasRoles(org.apache.shiro.subject.PrincipalCollection, java.util.List)">hasRoles</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>roleIdentifiers</code> - the application-specific role identifiers to check (usually role ids or role names).</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>an array of booleans whose indices correspond to the index of the |
| roles in the given identifiers. A true value indicates the user has the |
| role at that index. False indicates the user does not have the role at that index.</dd></dl> |
| </li> |
| </ul> |
| <a name="hasAllRoles(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasAllRoles</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.404">hasAllRoles</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> roleIdentifiers)</pre> |
| <div class="block">Returns <code>true</code> iff any of the configured realms' |
| <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>hasRole(org.apache.shiro.subject.PrincipalCollection, String)</code></a> call returns <code>true</code> for |
| <em>all</em> roles specified, <code>false</code> otherwise.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#hasAllRoles(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)">hasAllRoles</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>roleIdentifiers</code> - the application-specific role identifiers to check (usually role ids or role names).</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>true if the user has all the roles, false otherwise.</dd></dl> |
| </li> |
| </ul> |
| <a name="checkRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkRole</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.418">checkRole</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> role) |
| throws <a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></pre> |
| <div class="block">If !<a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#hasRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>hasRole(role)</code></a>, throws |
| an <code>UnauthorizedException</code> otherwise returns quietly.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#checkRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)">checkRole</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>role</code> - the application-specific role identifier (usually a role id or role name ).</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></code> - if the user does not have the role.</dd></dl> |
| </li> |
| </ul> |
| <a name="checkRoles(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkRoles</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.428">checkRoles</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> roles) |
| throws <a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></pre> |
| <div class="block">Calls <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkRoles(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"><code>checkRoles(PrincipalCollection principals, String... roles) </code></a>.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#checkRoles(org.apache.shiro.subject.PrincipalCollection, java.util.Collection)">checkRoles</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>roles</code> - the application-specific role identifiers to check (usually role ids or role names).</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></code> - if the user does not have all of the specified roles.</dd></dl> |
| </li> |
| </ul> |
| <a name="checkRoles(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>checkRoles</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/ModularRealmAuthorizer.html#line.436">checkRoles</a>(<a href="../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>... roles) |
| throws <a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></pre> |
| <div class="block">Calls <a href="../../../../org/apache/shiro/authz/ModularRealmAuthorizer.html#checkRole(org.apache.shiro.subject.PrincipalCollection, java.lang.String)"><code>checkRole</code></a> for each role specified.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/Authorizer.html#checkRoles(org.apache.shiro.subject.PrincipalCollection, java.lang.String...)">checkRoles</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/Authorizer.html" title="interface in org.apache.shiro.authz">Authorizer</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>principals</code> - the application-specific subject/user identifier.</dd><dd><code>roles</code> - the application-specific role identifiers to check (usually role ids or role names).</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationException.html" title="class in org.apache.shiro.authz">AuthorizationException</a></code> - if the user does not have all of the specified roles.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ModularRealmAuthorizer.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/shiro/authz/HostUnauthorizedException.html" title="class in org.apache.shiro.authz"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/shiro/authz/ModularRealmAuthorizer.html" target="_top">Frames</a></li> |
| <li><a href="ModularRealmAuthorizer.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2004-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p> |
| </body> |
| </html> |
| |