📄 policyconfiguration.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_02) on Thu Nov 13 17:20:33 PST 2003 --><TITLE>PolicyConfiguration (Java 2 Platform Ent. Ed. v1.4)</TITLE><META NAME="keywords" CONTENT="javax.security.jacc.PolicyConfiguration interface"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="PolicyConfiguration (Java 2 Platform Ent. Ed. v1.4)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../javax/security/jacc/PolicyContextHandler.html" title="interface in javax.security.jacc"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="PolicyConfiguration.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.security.jacc</FONT><BR>Interface PolicyConfiguration</H2><HR><DL><DT>public interface <B>PolicyConfiguration</B></DL><P>The methods of this interface are used by containers to create policy statements in a Policy provider. An object that implements the PolicyConfiguration interface provides the policy statement configuration interface for a corresponding policy context within the corresponding Policy provider. <P> The life cycle of a policy context is defined by three states; "open", "inService", and "deleted". A policy context is in one of these three states. <P> A policy context in the "open" state is in the process of being configured, and may be operated on by any of the methods of the PolicyConfiguration interface. A policy context in the "open" state must not be assimilated at <code>Policy.refresh</code> into the policy statements used by the Policy provider in performing its access decisions. In order for the policy statements of a policy context to be assimilated by the associated provider, the policy context must be in the "inService" state. A policy context in the "open" state is transitioned to the "inService" state by calling the commit method. <P> A policy context in the "inService" state is available for assimilation into the policy statements being used to perform access decisions by the associated Policy provider. Providers assimilate policy contexts containing policy statements when the refresh method of the provider is called. When a provider's refresh method is called, it must assimilate only those policy contexts whose state is "inService" and it must ensure that the policy statements put into service for each policy context are only those defined in the context at the time of the call to refresh. A policy context in the "inService" state is not available for additional configuration and may be returned to the "open" state by calling the getPolicyConfiguration method of the PolicyConfigurationFactory. <P> A policy context in the "deleted" state is neither available for configuration, nor is it available for assimilation into the Provider. A policy context whose state is "deleted" may be reclaimed for subsequent processing by calling the getPolicyConfiguration method of the associated PolicyConfigurationFactory. A "deleted" policy context is transitioned to the "open" state when it it returned as a result of a call to getPolicyConfiguration. <P> The following table captures the correspondence between the policy context life cycle and the methods of the PolicyConfiguration interface. The rightmost 3 columns of the table correspond to the PolicyConfiguration state identified at the head of the column. The values in the cells of these columns indicate the next state resulting from a call to the method identifed in the leftmost column of the corresponding row, or that calling the method is unsupported in the state represented by the column (in which case the state will remain unchanged). <br><br> <table border="1" width="90%" nosave="" align="center"> <caption>PolicyConfiguration State Table</caption> <tr> <th valign="middle" rowspan="2" colspan="1" align="center"> <font size="-2">Method</font></th> <th valign="top" rowspan="1" colspan="3" align="center"> <font size="-2">Current State to Next State</font></th> </tr> <tr> <th width="25%" align="center"><font size="-2">deleted</font></th> <th width="12%" align="center"><font size="-2">open</font></th> <th width="25%" align="center"><font size="-2">inService</font></th> </tr> <tr> <td width="28%"><font size="-2">addToExcludedPolicy</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">addToRole</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">addToUncheckedPolicy</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">commit</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td> <td width="12%" align="center"> <font size="-2">inService</font></td> <td width="25%" align="center"> <font size="-2">inService</font></td> </tr> <tr> <td width="28%"><font size="-2">delete</font></td> <td width="25%" align="center"> <font size="-2">deleted</font></td> <td width="12%" align="center"> <font size="-2">deleted</font></td> <td width="25%" align="center"> <font size="-2">deleted</font></td> </tr> <tr> <td width="28%"><font size="-2">getContextID</font></td> <td width="25%" align="center"> <font size="-2">deleted</font></td> <td width="12%" align="center"> <font size="-2">open</font></td> <td width="25%" align="center"> <font size="-2">inService</font></td> </tr> <tr> <td width="28%"><font size="-2">inService</font></td> <td width="25%" align="center"> <font size="-2">deleted</font></td> <td width="12%" align="center"> <font size="-2">open</font></td> <td width="25%" align="center"> <font size="-2">inService</font></td> </tr> <tr> <td width="28%"><font size="-2">linkConfiguration</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">removeExcludedPolicy</font></td> <td width="25%" align="center"> <font size="-2">Unsupported Operation</font></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -