| <!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 14:51:23 PDT 2013 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>SimpleAuthorizationInfo (Apache Shiro 1.2.1 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="SimpleAuthorizationInfo (Apache Shiro 1.2.1 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/SimpleAuthorizationInfo.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/Permission.html" title="interface in org.apache.shiro.authz"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/shiro/authz/SimpleRole.html" title="class 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/SimpleAuthorizationInfo.html" target="_top">Frames</a></li> |
| <li><a href="SimpleAuthorizationInfo.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 SimpleAuthorizationInfo" class="title">Class SimpleAuthorizationInfo</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.SimpleAuthorizationInfo</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html" title="interface in org.apache.shiro.authz">AuthorizationInfo</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.32">SimpleAuthorizationInfo</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/AuthorizationInfo.html" title="interface in org.apache.shiro.authz">AuthorizationInfo</a></pre> |
| <div class="block">Simple POJO implementation of the <a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html" title="interface in org.apache.shiro.authz"><code>AuthorizationInfo</code></a> interface that stores roles and permissions as internal |
| attributes.</div> |
| <dl><dt><span class="strong">Since:</span></dt> |
| <dd>0.9</dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/shiro/realm/AuthorizingRealm.html" title="class in org.apache.shiro.realm"><code>AuthorizingRealm</code></a>, |
| <a href="../../../../serialized-form.html#org.apache.shiro.authz.SimpleAuthorizationInfo">Serialized Form</a></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="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#objectPermissions">objectPermissions</a></strong></code> |
| <div class="block">Collection of all object-based permissions associaed with the account.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#roles">roles</a></strong></code> |
| <div class="block">The internal roles collection.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#stringPermissions">stringPermissions</a></strong></code> |
| <div class="block">Collection of all string-based permissions associated with the account.</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/SimpleAuthorizationInfo.html#SimpleAuthorizationInfo()">SimpleAuthorizationInfo</a></strong>()</code> |
| <div class="block">Default no-argument constructor.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#SimpleAuthorizationInfo(java.util.Set)">SimpleAuthorizationInfo</a></strong>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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">Creates a new instance with the specified roles and no permissions.</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>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#addObjectPermission(org.apache.shiro.authz.Permission)">addObjectPermission</a></strong>(<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a> permission)</code> |
| <div class="block">Adds (assigns) a permission to those directly associated with the account.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#addObjectPermissions(java.util.Collection)">addObjectPermissions</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/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> permissions)</code> |
| <div class="block">Adds (assigns) multiple permissions to those associated directly with the account.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#addRole(java.lang.String)">addRole</a></strong>(<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">Adds (assigns) a role to those associated with the account.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#addRoles(java.util.Collection)">addRoles</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="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">Adds (assigns) multiple roles to those associated with the account.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#addStringPermission(java.lang.String)">addStringPermission</a></strong>(<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">Adds (assigns) a permission to those directly associated with the account.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#addStringPermissions(java.util.Collection)">addStringPermissions</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="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">Adds (assigns) multiple permissions to those associated directly with the account.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#getObjectPermissions()">getObjectPermissions</a></strong>()</code> |
| <div class="block">Returns all type-safe <a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz"><code>Permission</code></a>s assigned to the corresponding Subject.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#getRoles()">getRoles</a></strong>()</code> |
| <div class="block">Returns the names of all roles assigned to a corresponding Subject.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#getStringPermissions()">getStringPermissions</a></strong>()</code> |
| <div class="block">Returns all string-based permissions assigned to the corresponding Subject.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#setObjectPermissions(java.util.Set)">setObjectPermissions</a></strong>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> objectPermissions)</code> |
| <div class="block">Sets the object-based permissions assigned directly to the account.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#setRoles(java.util.Set)">setRoles</a></strong>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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">Sets the roles assigned to the account.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#setStringPermissions(java.util.Set)">setStringPermissions</a></strong>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>> stringPermissions)</code> |
| <div class="block">Sets the string-based permissions assigned directly to the account.</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="roles"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>roles</h4> |
| <pre>protected <a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>> <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.37">roles</a></pre> |
| <div class="block">The internal roles collection.</div> |
| </li> |
| </ul> |
| <a name="stringPermissions"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>stringPermissions</h4> |
| <pre>protected <a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>> <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.42">stringPermissions</a></pre> |
| <div class="block">Collection of all string-based permissions associated with the account.</div> |
| </li> |
| </ul> |
| <a name="objectPermissions"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>objectPermissions</h4> |
| <pre>protected <a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.47">objectPermissions</a></pre> |
| <div class="block">Collection of all object-based permissions associaed with the account.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="SimpleAuthorizationInfo()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SimpleAuthorizationInfo</h4> |
| <pre>public <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.52">SimpleAuthorizationInfo</a>()</pre> |
| <div class="block">Default no-argument constructor.</div> |
| </li> |
| </ul> |
| <a name="SimpleAuthorizationInfo(java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>SimpleAuthorizationInfo</h4> |
| <pre>public <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.59">SimpleAuthorizationInfo</a>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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)</pre> |
| <div class="block">Creates a new instance with the specified roles and no permissions.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>roles</code> - the roles assigned to the realm account.</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="getRoles()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRoles</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>> <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.63">getRoles</a>()</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html#getRoles()">AuthorizationInfo</a></code></strong></div> |
| <div class="block">Returns the names of all roles assigned to a corresponding Subject.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html#getRoles()">getRoles</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html" title="interface in org.apache.shiro.authz">AuthorizationInfo</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the names of all roles assigned to a corresponding Subject.</dd></dl> |
| </li> |
| </ul> |
| <a name="setRoles(java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setRoles</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.71">setRoles</a>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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)</pre> |
| <div class="block">Sets the roles assigned to the account.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>roles</code> - the roles assigned to the account.</dd></dl> |
| </li> |
| </ul> |
| <a name="addRole(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addRole</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.80">addRole</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> role)</pre> |
| <div class="block">Adds (assigns) a role to those associated with the account. If the account doesn't yet have any roles, a |
| new roles collection (a Set) will be created automatically.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>role</code> - the role to add to those associated with the account.</dd></dl> |
| </li> |
| </ul> |
| <a name="addRoles(java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addRoles</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.92">addRoles</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="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)</pre> |
| <div class="block">Adds (assigns) multiple roles to those associated with the account. If the account doesn't yet have any roles, a |
| new roles collection (a Set) will be created automatically.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>roles</code> - the roles to add to those associated with the account.</dd></dl> |
| </li> |
| </ul> |
| <a name="getStringPermissions()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStringPermissions</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>> <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.99">getStringPermissions</a>()</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html#getStringPermissions()">AuthorizationInfo</a></code></strong></div> |
| <div class="block">Returns all string-based permissions assigned to the corresponding Subject. The permissions here plus those |
| returned from <a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html#getObjectPermissions()"><code>getObjectPermissions()</code></a> represent the total set of permissions |
| assigned. The aggregate set is used to perform a permission authorization check. |
| <p/> |
| This method is a convenience mechanism that allows Realms to represent permissions as Strings if they choose. |
| When performing a security check, a <code>Realm</code> usually converts these strings to object |
| <a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz"><code>Permission</code></a>s via an internal |
| <a href="../../../../org/apache/shiro/authz/permission/PermissionResolver.html" title="interface in org.apache.shiro.authz.permission"><code>PermissionResolver</code></a> |
| in order to perform the actual permission check. This is not a requirement of course, since <code>Realm</code>s |
| can perform security checks in whatever manner deemed necessary, but this explains the conversion mechanism that |
| most Shiro Realms execute for string-based permission checks.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html#getStringPermissions()">getStringPermissions</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html" title="interface in org.apache.shiro.authz">AuthorizationInfo</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>all string-based permissions assigned to the corresponding Subject.</dd></dl> |
| </li> |
| </ul> |
| <a name="setStringPermissions(java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStringPermissions</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.110">setStringPermissions</a>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</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>> stringPermissions)</pre> |
| <div class="block">Sets the string-based permissions assigned directly to the account. The permissions set here, in addition to any |
| <a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#getObjectPermissions()"><code>object permissions</code></a> constitute the total permissions assigned directly to the |
| account.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>stringPermissions</code> - the string-based permissions assigned directly to the account.</dd></dl> |
| </li> |
| </ul> |
| <a name="addStringPermission(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addStringPermission</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.119">addStringPermission</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> permission)</pre> |
| <div class="block">Adds (assigns) a permission to those directly associated with the account. If the account doesn't yet have any |
| direct permissions, a new permission collection (a Set<String>) will be created automatically.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>permission</code> - the permission to add to those directly assigned to the account.</dd></dl> |
| </li> |
| </ul> |
| <a name="addStringPermissions(java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addStringPermissions</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.131">addStringPermissions</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="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">Adds (assigns) multiple permissions to those associated directly with the account. If the account doesn't yet |
| have any string-based permissions, a new permissions collection (a Set<String>) will be created automatically.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>permissions</code> - the permissions to add to those associated directly with the account.</dd></dl> |
| </li> |
| </ul> |
| <a name="getObjectPermissions()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getObjectPermissions</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.138">getObjectPermissions</a>()</pre> |
| <div class="block"><strong>Description copied from interface: <code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html#getObjectPermissions()">AuthorizationInfo</a></code></strong></div> |
| <div class="block">Returns all type-safe <a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz"><code>Permission</code></a>s assigned to the corresponding Subject. The permissions |
| returned from this method plus any returned from <a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html#getStringPermissions()"><code>getStringPermissions()</code></a> |
| represent the total set of permissions. The aggregate set is used to perform a permission authorization check.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html#getObjectPermissions()">getObjectPermissions</a></code> in interface <code><a href="../../../../org/apache/shiro/authz/AuthorizationInfo.html" title="interface in org.apache.shiro.authz">AuthorizationInfo</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>all type-safe <a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz"><code>Permission</code></a>s assigned to the corresponding Subject.</dd></dl> |
| </li> |
| </ul> |
| <a name="setObjectPermissions(java.util.Set)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setObjectPermissions</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.149">setObjectPermissions</a>(<a href="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> objectPermissions)</pre> |
| <div class="block">Sets the object-based permissions assigned directly to the account. The permissions set here, in addition to any |
| <a href="../../../../org/apache/shiro/authz/SimpleAuthorizationInfo.html#getStringPermissions()"><code>string permissions</code></a> constitute the total permissions assigned directly to the |
| account.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>objectPermissions</code> - the object-based permissions assigned directly to the account.</dd></dl> |
| </li> |
| </ul> |
| <a name="addObjectPermission(org.apache.shiro.authz.Permission)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addObjectPermission</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.158">addObjectPermission</a>(<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a> permission)</pre> |
| <div class="block">Adds (assigns) a permission to those directly associated with the account. If the account doesn't yet have any |
| direct permissions, a new permission collection (a Set<<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz"><code>Permission</code></a>>) will be created automatically.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>permission</code> - the permission to add to those directly assigned to the account.</dd></dl> |
| </li> |
| </ul> |
| <a name="addObjectPermissions(java.util.Collection)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>addObjectPermissions</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/authz/SimpleAuthorizationInfo.html#line.171">addObjectPermissions</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/authz/Permission.html" title="interface in org.apache.shiro.authz">Permission</a>> permissions)</pre> |
| <div class="block">Adds (assigns) multiple permissions to those associated directly with the account. If the account doesn't yet |
| have any object-based permissions, a new permissions collection (a Set<<a href="../../../../org/apache/shiro/authz/Permission.html" title="interface in org.apache.shiro.authz"><code>Permission</code></a>>) |
| will be created automatically.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>permissions</code> - the permissions to add to those associated directly with the account.</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/SimpleAuthorizationInfo.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/Permission.html" title="interface in org.apache.shiro.authz"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/shiro/authz/SimpleRole.html" title="class 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/SimpleAuthorizationInfo.html" target="_top">Frames</a></li> |
| <li><a href="SimpleAuthorizationInfo.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> |
| |