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> 7 Uses of Class org.owasp.html.TCB (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"> 14 function windowTitle() 15 { 16 if (location.href.indexOf('is-external=true') == -1) { 17 parent.document.title="Uses of Class org.owasp.html.TCB (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/TCB.html" title="annotation 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-useTCB.html" target="_top"><B>FRAMES</B></A> 60 <A HREF="TCB.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.TCB</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"> 88 Packages that use <A HREF="../../../../org/owasp/html/TCB.html" title="annotation in org.owasp.html">TCB</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"> 103 Uses of <A HREF="../../../../org/owasp/html/TCB.html" title="annotation in org.owasp.html">TCB</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">Classes in <A HREF="../../../../org/owasp/html/package-summary.html">org.owasp.html</A> with annotations of type <A HREF="../../../../org/owasp/html/TCB.html" title="annotation in org.owasp.html">TCB</A></FONT></TH> 112 </TR> 113 <TR BGCOLOR="white" CLASS="TableRowColor"> 114 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 115 <CODE> interface</CODE></FONT></TD> 116 <TD><CODE><B><A HREF="../../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html">AttributePolicy</A></B></CODE> 117 118 <BR> 119 A policy that can be applied to an HTML attribute to decide whether or not to 120 allow it in the output, possibly after transforming its value.</TD> 121 </TR> 122 <TR BGCOLOR="white" CLASS="TableRowColor"> 123 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 124 <CODE> class</CODE></FONT></TD> 125 <TD><CODE><B><A HREF="../../../../org/owasp/html/CssSchema.html" title="class in org.owasp.html">CssSchema</A></B></CODE> 126 127 <BR> 128 Describes the kinds of tokens a CSS property's value can safely contain.</TD> 129 </TR> 130 <TR BGCOLOR="white" CLASS="TableRowColor"> 131 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 132 <CODE> interface</CODE></FONT></TD> 133 <TD><CODE><B><A HREF="../../../../org/owasp/html/ElementPolicy.html" title="interface in org.owasp.html">ElementPolicy</A></B></CODE> 134 135 <BR> 136 A policy that can be applied to an element to decide whether or not to 137 allow it in the output, possibly after transforming attributes.</TD> 138 </TR> 139 <TR BGCOLOR="white" CLASS="TableRowColor"> 140 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 141 <CODE> class</CODE></FONT></TD> 142 <TD><CODE><B><A HREF="../../../../org/owasp/html/FilterUrlByProtocolAttributePolicy.html" title="class in org.owasp.html">FilterUrlByProtocolAttributePolicy</A></B></CODE> 143 144 <BR> 145 An attribute policy for attributes whose values are URLs that requires that 146 the value have no protocol or have an allowed protocol.</TD> 147 </TR> 148 <TR BGCOLOR="white" CLASS="TableRowColor"> 149 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 150 <CODE> class</CODE></FONT></TD> 151 <TD><CODE><B><A HREF="../../../../org/owasp/html/HtmlPolicyBuilder.html" title="class in org.owasp.html">HtmlPolicyBuilder</A></B></CODE> 152 153 <BR> 154 Conveniences for configuring policies for the <A HREF="../../../../org/owasp/html/HtmlSanitizer.html" title="class in org.owasp.html"><CODE>HtmlSanitizer</CODE></A>.</TD> 155 </TR> 156 <TR BGCOLOR="white" CLASS="TableRowColor"> 157 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 158 <CODE>static interface</CODE></FONT></TD> 159 <TD><CODE><B><A HREF="../../../../org/owasp/html/HtmlSanitizer.Policy.html" title="interface in org.owasp.html">HtmlSanitizer.Policy</A></B></CODE> 160 161 <BR> 162 Receives events based on the HTML stream, and applies a policy to decide 163 what HTML constructs to allow.</TD> 164 </TR> 165 <TR BGCOLOR="white" CLASS="TableRowColor"> 166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 167 <CODE> class</CODE></FONT></TD> 168 <TD><CODE><B><A HREF="../../../../org/owasp/html/HtmlStreamRenderer.html" title="class in org.owasp.html">HtmlStreamRenderer</A></B></CODE> 169 170 <BR> 171 Given a series of HTML tokens, writes valid, normalized HTML to the output.</TD> 172 </TR> 173 <TR BGCOLOR="white" CLASS="TableRowColor"> 174 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 175 <CODE> class</CODE></FONT></TD> 176 <TD><CODE><B><A HREF="../../../../org/owasp/html/PolicyFactory.html" title="class in org.owasp.html">PolicyFactory</A></B></CODE> 177 178 <BR> 179 A factory that can be used to link a sanitizer to an output receiver and that 180 provides a convenient <code><A HREF="../../../../org/owasp/html/PolicyFactory.html#sanitize(java.lang.String)"><CODE>sanitize</CODE></A></code> 181 method and a <code><A HREF="../../../../org/owasp/html/PolicyFactory.html#and(org.owasp.html.PolicyFactory)"><CODE>and</CODE></A></code> method to compose 182 policies.</TD> 183 </TR> 184 <TR BGCOLOR="white" CLASS="TableRowColor"> 185 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 186 <CODE> class</CODE></FONT></TD> 187 <TD><CODE><B><A HREF="../../../../org/owasp/html/TagBalancingHtmlStreamEventReceiver.html" title="class in org.owasp.html">TagBalancingHtmlStreamEventReceiver</A></B></CODE> 188 189 <BR> 190 Wraps an HTML stream event receiver to fill in missing close tags.</TD> 191 </TR> 192 </TABLE> 193 194 <P> 195 <HR> 196 197 198 <!-- ======= START OF BOTTOM NAVBAR ====== --> 199 <A NAME="navbar_bottom"><!-- --></A> 200 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 201 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 202 <TR> 203 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 204 <A NAME="navbar_bottom_firstrow"><!-- --></A> 205 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 206 <TR ALIGN="center" VALIGN="top"> 207 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 208 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 209 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/owasp/html/TCB.html" title="annotation in org.owasp.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 210 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 211 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 212 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 213 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 214 </TR> 215 </TABLE> 216 </TD> 217 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 218 <a href="http://code.google.com/p/owasp-java-html-sanitizer" target=_top>code.google.com home</a></EM> 219 </TD> 220 </TR> 221 222 <TR> 223 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 224 PREV 225 NEXT</FONT></TD> 226 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 227 <A HREF="../../../../index.html?org/owasp/html//class-useTCB.html" target="_top"><B>FRAMES</B></A> 228 <A HREF="TCB.html" target="_top"><B>NO FRAMES</B></A> 229 <SCRIPT type="text/javascript"> 230 <!-- 231 if(window==top) { 232 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 233 } 234 //--> 235 </SCRIPT> 236 <NOSCRIPT> 237 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 238 </NOSCRIPT> 239 240 241 </FONT></TD> 242 </TR> 243 </TABLE> 244 <A NAME="skip-navbar_bottom"></A> 245 <!-- ======== END OF BOTTOM NAVBAR ======= --> 246 247 <HR> 248 249 </BODY> 250 </HTML> 251