1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 6<TITLE> 7Uses of Class org.owasp.html.PolicyFactory (OWASP Java HTML Sanitizer) 8</TITLE> 9 10 11<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> 12 13<SCRIPT type="text/javascript"> 14function windowTitle() 15{ 16 if (location.href.indexOf('is-external=true') == -1) { 17 parent.document.title="Uses of Class org.owasp.html.PolicyFactory (OWASP Java HTML Sanitizer)"; 18 } 19} 20</SCRIPT> 21<NOSCRIPT> 22</NOSCRIPT> 23 24</HEAD> 25 26<BODY BGCOLOR="white" onload="windowTitle();"> 27<HR> 28 29 30<!-- ========= START OF TOP NAVBAR ======= --> 31<A NAME="navbar_top"><!-- --></A> 32<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 33<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 34<TR> 35<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 36<A NAME="navbar_top_firstrow"><!-- --></A> 37<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 38 <TR ALIGN="center" VALIGN="top"> 39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 46 </TR> 47</TABLE> 48</TD> 49<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 50<a href="http://code.google.com/p/owasp-java-html-sanitizer" target=_top>code.google.com home</a></EM> 51</TD> 52</TR> 53 54<TR> 55<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 56 PREV 57 NEXT</FONT></TD> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../index.html?org/owasp/html//class-usePolicyFactory.html" target="_top"><B>FRAMES</B></A> 60 <A HREF="PolicyFactory.html" target="_top"><B>NO FRAMES</B></A> 61 <SCRIPT type="text/javascript"> 62 <!-- 63 if(window==top) { 64 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 65 } 66 //--> 67</SCRIPT> 68<NOSCRIPT> 69 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 70</NOSCRIPT> 71 72 73</FONT></TD> 74</TR> 75</TABLE> 76<A NAME="skip-navbar_top"></A> 77<!-- ========= END OF TOP NAVBAR ========= --> 78 79<HR> 80<CENTER> 81<H2> 82<B>Uses of Class<br>org.owasp.html.PolicyFactory</B></H2> 83</CENTER> 84 85<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 86<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 87<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 88Packages that use <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></FONT></TH> 89</TR> 90<TR BGCOLOR="white" CLASS="TableRowColor"> 91<TD><A HREF="#org.owasp.html"><B>org.owasp.html</B></A></TD> 92<TD>An efficient <A HREF="../../../../org/owasp/html/HtmlSanitizer.html" title="class in org.owasp.html"><CODE>HtmlSanitizer</CODE></A> 93 configurable via a flexible 94 <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.html" title="class in org.owasp.html"><CODE>HtmlPolicyBuilder</CODE></A>. </TD> 95</TR> 96<TR BGCOLOR="white" CLASS="TableRowColor"> 97<TD><A HREF="#org.owasp.html.examples"><B>org.owasp.html.examples</B></A></TD> 98<TD> </TD> 99</TR> 100</TABLE> 101 102<P> 103<A NAME="org.owasp.html"><!-- --></A> 104<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 105<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 106<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 107Uses of <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A> in <A HREF="../../../../org/owasp/html/package-summary.html">org.owasp.html</A></FONT></TH> 108</TR> 109</TABLE> 110 111<P> 112 113<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 114<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 115<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../org/owasp/html/package-summary.html">org.owasp.html</A> declared as <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></FONT></TH> 116</TR> 117<TR BGCOLOR="white" CLASS="TableRowColor"> 118<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 119<CODE>static <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 120<TD><CODE><B>Sanitizers.</B><B><A HREF="../../../../org/owasp/html/Sanitizers.html#BLOCKS">BLOCKS</A></B></CODE> 121 122<BR> 123 Allows common block elements including <code><p></code>, 124 <code><h1></code>, etc.</TD> 125</TR> 126<TR BGCOLOR="white" CLASS="TableRowColor"> 127<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 128<CODE>static <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 129<TD><CODE><B>Sanitizers.</B><B><A HREF="../../../../org/owasp/html/Sanitizers.html#FORMATTING">FORMATTING</A></B></CODE> 130 131<BR> 132 Allows common formatting elements including <code><b></code>, <code><i></code>, etc.</TD> 133</TR> 134<TR BGCOLOR="white" CLASS="TableRowColor"> 135<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 136<CODE>static <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 137<TD><CODE><B>Sanitizers.</B><B><A HREF="../../../../org/owasp/html/Sanitizers.html#IMAGES">IMAGES</A></B></CODE> 138 139<BR> 140 Allows <code><img></code> elements from HTTP, HTTPS, and relative sources.</TD> 141</TR> 142<TR BGCOLOR="white" CLASS="TableRowColor"> 143<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 144<CODE>static <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 145<TD><CODE><B>Sanitizers.</B><B><A HREF="../../../../org/owasp/html/Sanitizers.html#LINKS">LINKS</A></B></CODE> 146 147<BR> 148 Allows HTTP, HTTPS, MAILTO, and relative links.</TD> 149</TR> 150<TR BGCOLOR="white" CLASS="TableRowColor"> 151<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 152<CODE>static <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 153<TD><CODE><B>Sanitizers.</B><B><A HREF="../../../../org/owasp/html/Sanitizers.html#STYLES">STYLES</A></B></CODE> 154 155<BR> 156 Allows certain safe CSS properties in <code>style="..."</code> attributes.</TD> 157</TR> 158</TABLE> 159 160<P> 161 162<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 163<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 164<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../org/owasp/html/package-summary.html">org.owasp.html</A> that return <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></FONT></TH> 165</TR> 166<TR BGCOLOR="white" CLASS="TableRowColor"> 167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 168<CODE> <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 169<TD><CODE><B>PolicyFactory.</B><B><A HREF="../../../../org/owasp/html/PolicyFactory.html#and(org.owasp.html.PolicyFactory)">and</A></B>(<A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A> f)</CODE> 170 171<BR> 172 Produces a factory that allows the union of the grants, and intersects 173 policies where they overlap on a particular granted attribute or element 174 name.</TD> 175</TR> 176<TR BGCOLOR="white" CLASS="TableRowColor"> 177<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 178<CODE> <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 179<TD><CODE><B>HtmlPolicyBuilder.</B><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.html#toFactory()">toFactory</A></B>()</CODE> 180 181<BR> 182 Like <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.html#build(org.owasp.html.HtmlStreamEventReceiver)"><CODE>HtmlPolicyBuilder.build(org.owasp.html.HtmlStreamEventReceiver)</CODE></A> but can be reused to create many different policies 183 each backed by a different output channel.</TD> 184</TR> 185</TABLE> 186 187<P> 188 189<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 190<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 191<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../org/owasp/html/package-summary.html">org.owasp.html</A> with parameters of type <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></FONT></TH> 192</TR> 193<TR BGCOLOR="white" CLASS="TableRowColor"> 194<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 195<CODE> <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 196<TD><CODE><B>PolicyFactory.</B><B><A HREF="../../../../org/owasp/html/PolicyFactory.html#and(org.owasp.html.PolicyFactory)">and</A></B>(<A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A> f)</CODE> 197 198<BR> 199 Produces a factory that allows the union of the grants, and intersects 200 policies where they overlap on a particular granted attribute or element 201 name.</TD> 202</TR> 203</TABLE> 204 205<P> 206<A NAME="org.owasp.html.examples"><!-- --></A> 207<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 208<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 209<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 210Uses of <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A> in <A HREF="../../../../org/owasp/html/examples/package-summary.html">org.owasp.html.examples</A></FONT></TH> 211</TR> 212</TABLE> 213 214<P> 215 216<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 217<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 218<TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../../../org/owasp/html/examples/package-summary.html">org.owasp.html.examples</A> declared as <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></FONT></TH> 219</TR> 220<TR BGCOLOR="white" CLASS="TableRowColor"> 221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 222<CODE>static <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></CODE></FONT></TD> 223<TD><CODE><B>EbayPolicyExample.</B><B><A HREF="../../../../org/owasp/html/examples/EbayPolicyExample.html#POLICY_DEFINITION">POLICY_DEFINITION</A></B></CODE> 224 225<BR> 226 </TD> 227</TR> 228</TABLE> 229 230<P> 231<HR> 232 233 234<!-- ======= START OF BOTTOM NAVBAR ====== --> 235<A NAME="navbar_bottom"><!-- --></A> 236<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 237<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 238<TR> 239<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 240<A NAME="navbar_bottom_firstrow"><!-- --></A> 241<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 242 <TR ALIGN="center" VALIGN="top"> 243 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 244 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 245 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 246 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 247 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 248 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 249 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 250 </TR> 251</TABLE> 252</TD> 253<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 254<a href="http://code.google.com/p/owasp-java-html-sanitizer" target=_top>code.google.com home</a></EM> 255</TD> 256</TR> 257 258<TR> 259<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 260 PREV 261 NEXT</FONT></TD> 262<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 263 <A HREF="../../../../index.html?org/owasp/html//class-usePolicyFactory.html" target="_top"><B>FRAMES</B></A> 264 <A HREF="PolicyFactory.html" target="_top"><B>NO FRAMES</B></A> 265 <SCRIPT type="text/javascript"> 266 <!-- 267 if(window==top) { 268 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 269 } 270 //--> 271</SCRIPT> 272<NOSCRIPT> 273 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 274</NOSCRIPT> 275 276 277</FONT></TD> 278</TR> 279</TABLE> 280<A NAME="skip-navbar_bottom"></A> 281<!-- ======== END OF BOTTOM NAVBAR ======= --> 282 283<HR> 284 285</BODY> 286</HTML> 287