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>
7AttributePolicy.Util (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="AttributePolicy.Util (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>&nbsp;</TD>
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AttributePolicy.Util.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</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&nbsp;<A HREF="../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html"><B>PREV CLASS</B></A>&nbsp;
57&nbsp;<A HREF="../../../org/owasp/html/CssSchema.html" title="class in org.owasp.html"><B>NEXT CLASS</B></A></FONT></TD>
58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59  <A HREF="../../../index.html?org/owasp/html/AttributePolicy.Util.html" target="_top"><B>FRAMES</B></A>  &nbsp;
60&nbsp;<A HREF="AttributePolicy.Util.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
61&nbsp;<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<TR>
76<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
80</TR>
81</TABLE>
82<A NAME="skip-navbar_top"></A>
83<!-- ========= END OF TOP NAVBAR ========= -->
84
85<HR>
86<!-- ======== START OF CLASS DATA ======== -->
87<H2>
88<FONT SIZE="-1">
89org.owasp.html</FONT>
90<BR>
91Class AttributePolicy.Util</H2>
92<PRE>
93java.lang.Object
94  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.owasp.html.AttributePolicy.Util</B>
95</PRE>
96<DL>
97<DT><B>Enclosing interface:</B><DD><A HREF="../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html">AttributePolicy</A></DD>
98</DL>
99<HR>
100<DL>
101<DT><PRE>public static final class <A HREF="../../../src-html/org/owasp/html/AttributePolicy.html#line.62"><B>AttributePolicy.Util</B></A><DT>extends java.lang.Object</DL>
102</PRE>
103
104<P>
105Utilities for working with attribute policies.
106<P>
107
108<P>
109<HR>
110
111<P>
112
113<!-- ======== CONSTRUCTOR SUMMARY ======== -->
114
115<A NAME="constructor_summary"><!-- --></A>
116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
118<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
119<B>Constructor Summary</B></FONT></TH>
120</TR>
121<TR BGCOLOR="white" CLASS="TableRowColor">
122<TD><CODE><B><A HREF="../../../org/owasp/html/AttributePolicy.Util.html#AttributePolicy.Util()">AttributePolicy.Util</A></B>()</CODE>
123
124<BR>
125&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
126</TR>
127</TABLE>
128&nbsp;
129<!-- ========== METHOD SUMMARY =========== -->
130
131<A NAME="method_summary"><!-- --></A>
132<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
133<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
134<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
135<B>Method Summary</B></FONT></TH>
136</TR>
137<TR BGCOLOR="white" CLASS="TableRowColor">
138<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139<CODE>static&nbsp;<A HREF="../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html">AttributePolicy</A></CODE></FONT></TD>
140<TD><CODE><B><A HREF="../../../org/owasp/html/AttributePolicy.Util.html#join(org.owasp.html.AttributePolicy...)">join</A></B>(<A HREF="../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html">AttributePolicy</A>...&nbsp;policies)</CODE>
141
142<BR>
143&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An attribute policy equivalent to applying all the given policies in
144 order, failing early if any of them fails.</TD>
145</TR>
146</TABLE>
147&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
148<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
149<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
150<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
151</TR>
152<TR BGCOLOR="white" CLASS="TableRowColor">
153<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
154</TR>
155</TABLE>
156&nbsp;
157<P>
158
159<!-- ========= CONSTRUCTOR DETAIL ======== -->
160
161<A NAME="constructor_detail"><!-- --></A>
162<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
163<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
164<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
165<B>Constructor Detail</B></FONT></TH>
166</TR>
167</TABLE>
168
169<A NAME="AttributePolicy.Util()"><!-- --></A><H3>
170AttributePolicy.Util</H3>
171<PRE>
172public <A HREF="../../../src-html/org/owasp/html/AttributePolicy.Util.html#line.62"><B>AttributePolicy.Util</B></A>()</PRE>
173<DL>
174</DL>
175
176<!-- ============ METHOD DETAIL ========== -->
177
178<A NAME="method_detail"><!-- --></A>
179<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
181<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
182<B>Method Detail</B></FONT></TH>
183</TR>
184</TABLE>
185
186<A NAME="join(org.owasp.html.AttributePolicy...)"><!-- --></A><H3>
187join</H3>
188<PRE>
189<FONT SIZE="-1">@CheckReturnValue
190</FONT>public static final <A HREF="../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html">AttributePolicy</A> <A HREF="../../../src-html/org/owasp/html/AttributePolicy.Util.html#line.69"><B>join</B></A>(<A HREF="../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html">AttributePolicy</A>...&nbsp;policies)</PRE>
191<DL>
192<DD>An attribute policy equivalent to applying all the given policies in
193 order, failing early if any of them fails.
194<P>
195<DD><DL>
196</DL>
197</DD>
198</DL>
199<!-- ========= END OF CLASS DATA ========= -->
200<HR>
201
202
203<!-- ======= START OF BOTTOM NAVBAR ====== -->
204<A NAME="navbar_bottom"><!-- --></A>
205<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
206<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
207<TR>
208<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
209<A NAME="navbar_bottom_firstrow"><!-- --></A>
210<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
211  <TR ALIGN="center" VALIGN="top">
212  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
213  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
214  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
215  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AttributePolicy.Util.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
216  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
217  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
218  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
219  </TR>
220</TABLE>
221</TD>
222<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
223<a href="http://code.google.com/p/owasp-java-html-sanitizer" target=_top>code.google.com home</a></EM>
224</TD>
225</TR>
226
227<TR>
228<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
229&nbsp;<A HREF="../../../org/owasp/html/AttributePolicy.html" title="interface in org.owasp.html"><B>PREV CLASS</B></A>&nbsp;
230&nbsp;<A HREF="../../../org/owasp/html/CssSchema.html" title="class in org.owasp.html"><B>NEXT CLASS</B></A></FONT></TD>
231<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
232  <A HREF="../../../index.html?org/owasp/html/AttributePolicy.Util.html" target="_top"><B>FRAMES</B></A>  &nbsp;
233&nbsp;<A HREF="AttributePolicy.Util.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
234&nbsp;<SCRIPT type="text/javascript">
235  <!--
236  if(window==top) {
237    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
238  }
239  //-->
240</SCRIPT>
241<NOSCRIPT>
242  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
243</NOSCRIPT>
244
245
246</FONT></TD>
247</TR>
248<TR>
249<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
250  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
251<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
252DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
253</TR>
254</TABLE>
255<A NAME="skip-navbar_bottom"></A>
256<!-- ======== END OF BOTTOM NAVBAR ======= -->
257
258<HR>
259
260</BODY>
261</HTML>
262