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.HtmlPolicyBuilder.AttributeBuilder (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.HtmlPolicyBuilder.AttributeBuilder (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/HtmlPolicyBuilder.AttributeBuilder.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-useHtmlPolicyBuilder.AttributeBuilder.html" target="_top"><B>FRAMES</B></A> 60 <A HREF="HtmlPolicyBuilder.AttributeBuilder.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.HtmlPolicyBuilder.AttributeBuilder</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/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</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</TABLE> 97 98<P> 99<A NAME="org.owasp.html"><!-- --></A> 100<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 101<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 102<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 103Uses of <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A> in <A HREF="../../../../org/owasp/html/package-summary.html">org.owasp.html</A></FONT></TH> 104</TR> 105</TABLE> 106 107<P> 108 109<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 110<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 111<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/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A></FONT></TH> 112</TR> 113<TR BGCOLOR="white" CLASS="TableRowColor"> 114<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 115<CODE> <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A></CODE></FONT></TD> 116<TD><CODE><B>HtmlPolicyBuilder.</B><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.html#allowAttributes(java.lang.String...)">allowAttributes</A></B>(java.lang.String... attributeNames)</CODE> 117 118<BR> 119 Returns an object that lets you associate policies with the given 120 attributes, and allow them globally or on specific elements.</TD> 121</TR> 122<TR BGCOLOR="white" CLASS="TableRowColor"> 123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 124<CODE> <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A></CODE></FONT></TD> 125<TD><CODE><B>HtmlPolicyBuilder.</B><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.html#disallowAttributes(java.lang.String...)">disallowAttributes</A></B>(java.lang.String... attributeNames)</CODE> 126 127<BR> 128 Reverse an earlier attribute <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.html#allowAttributes(java.lang.String...)"><CODE>allow</CODE></A>.</TD> 129</TR> 130<TR BGCOLOR="white" CLASS="TableRowColor"> 131<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 132<CODE> <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A></CODE></FONT></TD> 133<TD><CODE><B>HtmlPolicyBuilder.AttributeBuilder.</B><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html#matching(org.owasp.html.AttributePolicy)">matching</A></B>(<A HREF="../../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html">AttributePolicy</A> policy)</CODE> 134 135<BR> 136 Filters and/or transforms the attribute values 137 allowed by later <code>allow*</code> calls.</TD> 138</TR> 139<TR BGCOLOR="white" CLASS="TableRowColor"> 140<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 141<CODE> <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A></CODE></FONT></TD> 142<TD><CODE><B>HtmlPolicyBuilder.AttributeBuilder.</B><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html#matching(boolean, java.util.Set)">matching</A></B>(boolean ignoreCase, 143 java.util.Set<? extends java.lang.String> allowedValues)</CODE> 144 145<BR> 146 Restrict the values allowed by later <code>allow*</code> calls to those 147 supplied.</TD> 148</TR> 149<TR BGCOLOR="white" CLASS="TableRowColor"> 150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 151<CODE> <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A></CODE></FONT></TD> 152<TD><CODE><B>HtmlPolicyBuilder.AttributeBuilder.</B><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html#matching(boolean, java.lang.String...)">matching</A></B>(boolean ignoreCase, 153 java.lang.String... allowedValues)</CODE> 154 155<BR> 156 Restrict the values allowed by later <code>allow*</code> calls to those 157 supplied.</TD> 158</TR> 159<TR BGCOLOR="white" CLASS="TableRowColor"> 160<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 161<CODE> <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A></CODE></FONT></TD> 162<TD><CODE><B>HtmlPolicyBuilder.AttributeBuilder.</B><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html#matching(java.util.regex.Pattern)">matching</A></B>(java.util.regex.Pattern pattern)</CODE> 163 164<BR> 165 Restrict the values allowed by later <code>allow*</code> calls to those 166 matching the pattern.</TD> 167</TR> 168<TR BGCOLOR="white" CLASS="TableRowColor"> 169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 170<CODE> <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder.AttributeBuilder</A></CODE></FONT></TD> 171<TD><CODE><B>HtmlPolicyBuilder.AttributeBuilder.</B><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html#matching(com.google.common.base.Predicate)">matching</A></B>(com.google.common.base.Predicate<? super java.lang.String> filter)</CODE> 172 173<BR> 174 Restrict the values allowed by later <code>allow*</code> calls to those 175 matching the given predicate.</TD> 176</TR> 177</TABLE> 178 179<P> 180<HR> 181 182 183<!-- ======= START OF BOTTOM NAVBAR ====== --> 184<A NAME="navbar_bottom"><!-- --></A> 185<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 186<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 187<TR> 188<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 189<A NAME="navbar_bottom_firstrow"><!-- --></A> 190<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 191 <TR ALIGN="center" VALIGN="top"> 192 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 193 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 194 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.AttributeBuilder.html" title="class in org.owasp.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 195 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 196 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 197 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 198 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 199 </TR> 200</TABLE> 201</TD> 202<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 203<a href="http://code.google.com/p/owasp-java-html-sanitizer" target=_top>code.google.com home</a></EM> 204</TD> 205</TR> 206 207<TR> 208<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 209 PREV 210 NEXT</FONT></TD> 211<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 212 <A HREF="../../../../index.html?org/owasp/html//class-useHtmlPolicyBuilder.AttributeBuilder.html" target="_top"><B>FRAMES</B></A> 213 <A HREF="HtmlPolicyBuilder.AttributeBuilder.html" target="_top"><B>NO FRAMES</B></A> 214 <SCRIPT type="text/javascript"> 215 <!-- 216 if(window==top) { 217 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 218 } 219 //--> 220</SCRIPT> 221<NOSCRIPT> 222 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 223</NOSCRIPT> 224 225 226</FONT></TD> 227</TR> 228</TABLE> 229<A NAME="skip-navbar_bottom"></A> 230<!-- ======== END OF BOTTOM NAVBAR ======= --> 231 232<HR> 233 234</BODY> 235</HTML> 236