📄 policyconfiguration.html
字号:
<td width="12%" align="center"> <font size="-2">open</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td> </tr> <tr> <td width="28%"><font size="-2">removeExcludedPolicy</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td> <td width="12%" align="center"><font size="-2"> open</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td> </tr> <tr> <td width="28%"><font size="-2">removeRole</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td> <td width="12%" align="center"> <font size="-2">open</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td> </tr> <tr> <td width="28%"><font size="-2">removeUncheckedPolicy</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td> <td width="12%" align="center"> <font size="-2">open</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td> </tr> </table> <br><P> For a provider implementation to be compatible with multi-threaded environments, it may be necessary to synchronize the refresh method of the provider with the methods of its PolicyConfiguration interface and with the getPolicyConfiguration and inService methods of its PolicyConfigurationFactory.<P><P><DL><DT><B>Author:</B></DT> <DD>Ron Monzillo, Gary Ellison</DD><DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/Permission.html" title="class or interface in java.security"><CODE>Permission</CODE></A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/PermissionCollection.html" title="class or interface in java.security"><CODE>PermissionCollection</CODE></A>, <A HREF="../../../javax/security/jacc/PolicyContextException.html" title="class in javax.security.jacc"><CODE>PolicyContextException</CODE></A>, <A HREF="../../../javax/security/jacc/PolicyConfigurationFactory.html" title="class in javax.security.jacc"><CODE>PolicyConfigurationFactory</CODE></A></DL><HR><P><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#addToExcludedPolicy(java.security.Permission)">addToExcludedPolicy</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/Permission.html" title="class or interface in java.security">Permission</A> permission)</CODE><BR> Used to add a single excluded policy statement to this PolicyConfiguration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#addToExcludedPolicy(java.security.PermissionCollection)">addToExcludedPolicy</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/PermissionCollection.html" title="class or interface in java.security">PermissionCollection</A> permissions)</CODE><BR> Used to add excluded policy statements to this PolicyConfiguration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#addToRole(java.lang.String, java.security.Permission)">addToRole</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> roleName, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/Permission.html" title="class or interface in java.security">Permission</A> permission)</CODE><BR> Used to add a single permission to a named role in this PolicyConfiguration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#addToRole(java.lang.String, java.security.PermissionCollection)">addToRole</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> roleName, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/PermissionCollection.html" title="class or interface in java.security">PermissionCollection</A> permissions)</CODE><BR> Used to add permissions to a named role in this PolicyConfiguration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#addToUncheckedPolicy(java.security.Permission)">addToUncheckedPolicy</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/Permission.html" title="class or interface in java.security">Permission</A> permission)</CODE><BR> Used to add a single unchecked policy statement to this PolicyConfiguration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#addToUncheckedPolicy(java.security.PermissionCollection)">addToUncheckedPolicy</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/security/PermissionCollection.html" title="class or interface in java.security">PermissionCollection</A> permissions)</CODE><BR> Used to add unchecked policy statements to this PolicyConfiguration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#commit()">commit</A></B>()</CODE><BR> This method is used to set to "inService" the state of the policy context whose interface is this PolicyConfiguration Object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#delete()">delete</A></B>()</CODE><BR> Causes all policy statements to be deleted from this PolicyConfiguration and sets its internal state such that calling any method, other than delete, getContextID, or inService on the PolicyConfiguration will be rejected and cause an UnsupportedOperationException to be thrown.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#getContextID()">getContextID</A></B>()</CODE><BR> This method returns this object's policy context identifier.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#inService()">inService</A></B>()</CODE><BR> This method is used to determine if the policy context whose interface is this PolicyConfiguration Object is in the "inService" state.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#linkConfiguration(javax.security.jacc.PolicyConfiguration)">linkConfiguration</A></B>(<A HREF="../../../javax/security/jacc/PolicyConfiguration.html" title="interface in javax.security.jacc">PolicyConfiguration</A> link)</CODE><BR> Creates a relationship between this configuration and another such that they share the same principal-to-role mappings.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#removeExcludedPolicy()">removeExcludedPolicy</A></B>()</CODE><BR> Used to remove any excluded policy statements from this PolicyConfiguration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#removeRole(java.lang.String)">removeRole</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> roleName)</CODE><BR> Used to remove a role and all its permissions from this PolicyConfiguration.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/security/jacc/PolicyConfiguration.html#removeUncheckedPolicy()">removeUncheckedPolicy</A></B>()</CODE><BR> Used to remove any unchecked policy statements from this PolicyConfiguration.</TD></TR></TABLE> <P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getContextID()"><!-- --></A><H3>getContextID</H3><PRE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getContextID</B>() throws <A HREF="../../../javax/security/jacc/PolicyContextException.html" title="class in javax.security.jacc">PolicyContextException</A></PRE><DL><DD>This method returns this object's policy context identifier.<P><DD><DL><DT><B>Returns:</B><DD>this object's policy context identifier.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/SecurityException.html" title="class or interface in java.lang">SecurityException</A></CODE> - if called by an AccessControlContext that has not been granted the "setPolicy" SecurityPermission.<DD><CODE><A HREF="../../../javax/security/jacc/PolicyContextException.html" title="class in javax.security.jacc">PolicyContextException</A></CODE> - if the implementation throws a checked exception that has not been accounted for by the getContextID method signature. The exception thrown by the implementation class will be encapsulated (during construction) in the thrown PolicyContextException.</DL></DD></DL><HR><A NAME="addToRole(java.lang.String, java.security.PermissionCollection)"><!-- --></A><H3>addToRole</H3><PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -