- CDATA - Static variable in class org.owasp.encoder.Encoders
-
- CDATA_ENCODER - Static variable in class org.owasp.encoder.Encoders
-
Encoder for CDATA contexts.
- CDATA_END_ENCODED - Static variable in class org.owasp.encoder.CDATAEncoder
-
The encoding of @{code "]]>"}.
- CDATA_END_ENCODED_LENGTH - Static variable in class org.owasp.encoder.CDATAEncoder
-
Length of "]]]]><![CDATA[>"
.
- CDATA_END_LENGTH - Static variable in class org.owasp.encoder.CDATAEncoder
-
Length of "]]>"
.
- CDATAEncoder - Class in org.owasp.encoder
-
CDATAEncoder -- encoder for CDATA sections.
- CDATAEncoder() - Constructor for class org.owasp.encoder.CDATAEncoder
-
- ChainedEncoder - Class in org.owasp.encoder
-
ChainedEncoder -- An encoder that chains together two encoders in
order.
- ChainedEncoder(Encoder, Encoder) - Constructor for class org.owasp.encoder.ChainedEncoder
-
Creates an ChainedEncoder that applies the encoding sequence
input --> first --> last --> output
.
- CHARS_0_TO_9 - Static variable in class org.owasp.encoder.URIEncoder
-
Number of characters in the range '0' to '9'.
- CHARS_A_TO_Z - Static variable in class org.owasp.encoder.URIEncoder
-
Number of characters in the range 'a' to 'z'.
- clear(String) - Method in class org.owasp.encoder.ASCIIBits
-
Clears the bit (sets to 0) for each character in the argument string.
- clear(char, char) - Method in class org.owasp.encoder.ASCIIBits
-
Sets a range of characters to 0s in the masks.
- close() - Method in class org.owasp.encoder.EncodedWriter
-
- CSS_STRING - Static variable in class org.owasp.encoder.Encoders
-
- CSS_STRING_ENCODER - Static variable in class org.owasp.encoder.Encoders
-
Encoder for CSS strings.
- CSS_URL - Static variable in class org.owasp.encoder.Encoders
-
- CSS_URL_ENCODER - Static variable in class org.owasp.encoder.Encoders
-
Encoder for CSS URL values.
- CSSEncoder - Class in org.owasp.encoder
-
CSSEncoder -- Encoder for Cascading-Style-Sheet string and URI contexts.
- CSSEncoder(CSSEncoder.Mode) - Constructor for class org.owasp.encoder.CSSEncoder
-
Creates an encoder for the specified mode of operation.
- CSSEncoder.Mode - Enum in org.owasp.encoder
-
Encoding mode of operation--specified the set of characters that
required encoding.
- encode(String) - Method in class org.owasp.encoder.ChainedEncoder
-
Encodes an input string to an output string.
- encode(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.ChainedEncoder
-
- Encode - Class in org.owasp.encoder
-
Encode -- fluent interface for contextual encoding.
- Encode() - Constructor for class org.owasp.encoder.Encode
-
No instances.
- encode(Encoder, String, int) - Method in class org.owasp.encoder.Encode.Buffer
-
The core String encoding routine of this class.
- encode(Encoder, Writer, String, int) - Method in class org.owasp.encoder.Encode.Buffer
-
The core Writer encoding routing of this class.
- encode(Encoder, String) - Static method in class org.owasp.encoder.Encode
-
Core encoding loop shared by public methods.
- encode(Encoder, Writer, String) - Static method in class org.owasp.encoder.Encode
-
Core encoding loop shared by public methods.
- encode(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.Encoder
-
This is the kernel of encoding.
- encode(int, char[], int) - Static method in class org.owasp.encoder.HTMLEncoder
-
Appends the numerically encoded version of codePoint
to the
output buffer.
- Encode.Buffer - Class in org.owasp.encoder
-
A buffer used for encoding.
- ENCODE_AFFIX_CHAR_COUNT - Static variable in class org.owasp.encoder.HTMLEncoder
-
Number of characters in the encoding prefix and suffix when using decimal
numeric encodings of the form "...;".
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.CDATAEncoder
-
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.ChainedEncoder
-
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.CSSEncoder
-
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.Encoder
-
The core encoding loop used when both the input and output buffers
are array backed.
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.HTMLEncoder
-
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.JavaEncoder
-
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.JavaScriptEncoder
-
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.URIEncoder
-
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.XMLCommentEncoder
-
- encodeArrays(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.XMLEncoder
-
The core encoding loop used when both the input and output buffers
are array backed.
- encodeBuffers(CharBuffer, CharBuffer, boolean) - Method in class org.owasp.encoder.Encoder
-
The core encoding loop used when either or both input and output
buffers are NOT array-backed.
- EncodedWriter - Class in org.owasp.encoder
-
EncodedWriter -- A writer the encodes all input for a specific context and writes the encoded output to another writer.
- EncodedWriter(Writer, Encoder) - Constructor for class org.owasp.encoder.EncodedWriter
-
Creates an EncodedWriter that uses the specified encoder to encode all input before sending it to the wrapped writer.
- EncodedWriter(Writer, String) - Constructor for class org.owasp.encoder.EncodedWriter
-
Creates an EncodedWriter that uses the specified encoder to encode all input before sending it to the wrapped writer.
- Encoder - Class in org.owasp.encoder
-
This is the low-level encoding API.
- Encoder() - Constructor for class org.owasp.encoder.Encoder
-
Package-private constructor to prevent having to support
external implementations of this class.
- Encoders - Class in org.owasp.encoder
-
Encoders -- Public factory method for obtaining instances of Encoders.
- Encoders() - Constructor for class org.owasp.encoder.Encoders
-
No instances.
- ENCODERS_MAP - Static variable in class org.owasp.encoder.Encoders
-
Map from encoder name to encoder singleton.
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.CDATAEncoder
-
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.ChainedEncoder
-
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.CSSEncoder
-
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.Encoder
-
Scans the input string for the first character index that requires
encoding.
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.HTMLEncoder
-
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.JavaEncoder
-
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.JavaScriptEncoder
-
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.URIEncoder
-
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.XMLCommentEncoder
-
- firstEncodedOffset(String, int, int) - Method in class org.owasp.encoder.XMLEncoder
-
- flush() - Method in class org.owasp.encoder.EncodedWriter
-
- flushBufferToWriter() - Method in class org.owasp.encoder.EncodedWriter
-
Flushes the contents of the buffer to the writer and resets the buffer to make room for more input.
- flushLeftOver(CharBuffer) - Method in class org.owasp.encoder.EncodedWriter
-
Flushes the left-over buffer.
- forCDATA(String) - Static method in class org.owasp.encoder.Encode
-
Encodes data for an XML CDATA section.
- forCDATA(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forCssString(String) - Static method in class org.owasp.encoder.Encode
-
Encodes for CSS strings.
- forCssString(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forCssUrl(String) - Static method in class org.owasp.encoder.Encode
-
Encodes for CSS URL contexts.
- forCssUrl(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forHtml(String) - Static method in class org.owasp.encoder.Encode
-
Encodes for (X)HTML text content and text attributes.
- forHtml(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forHtmlAttribute(String) - Static method in class org.owasp.encoder.Encode
-
This method encodes for HTML text attributes.
- forHtmlAttribute(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forHtmlContent(String) - Static method in class org.owasp.encoder.Encode
-
This method encodes for HTML text content.
- forHtmlContent(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forHtmlUnquotedAttribute(String) - Static method in class org.owasp.encoder.Encode
-
Encodes for unquoted HTML attribute values.
- forHtmlUnquotedAttribute(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forJava(String) - Static method in class org.owasp.encoder.Encode
-
Encodes for a Java string.
- forJava(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forJavaScript(String) - Static method in class org.owasp.encoder.Encode
-
Encodes for a JavaScript string.
- forJavaScript(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forJavaScriptAttribute(String) - Static method in class org.owasp.encoder.Encode
-
This method encodes for JavaScript strings contained within
HTML script attributes (such as onclick
).
- forJavaScriptAttribute(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forJavaScriptBlock(String) - Static method in class org.owasp.encoder.Encode
-
This method encodes for JavaScript strings contained within
HTML script blocks.
- forJavaScriptBlock(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forJavaScriptSource(String) - Static method in class org.owasp.encoder.Encode
-
This method encodes for JavaScript strings contained within
a JavaScript or JSON file.
- forJavaScriptSource(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forName(String) - Static method in class org.owasp.encoder.Encoders
-
Returns a new instance of an Encoder for the specified context.
- forUri(String) - Static method in class org.owasp.encoder.Encode
-
Deprecated.
- forUri(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forUriComponent(String) - Static method in class org.owasp.encoder.Encode
-
Performs percent-encoding for a component of a URI, such as a query
parameter name or value, path or query-string.
- forUriComponent(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forXml(String) - Static method in class org.owasp.encoder.Encode
-
Encoder for XML and XHTML.
- forXml(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forXmlAttribute(String) - Static method in class org.owasp.encoder.Encode
-
Encoder for XML and XHTML attribute content.
- forXmlAttribute(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forXmlComment(String) - Static method in class org.owasp.encoder.Encode
-
Encoder for XML comments.
- forXmlComment(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- forXmlContent(String) - Static method in class org.owasp.encoder.Encode
-
Encoder for XML and XHTML text content.
- forXmlContent(Writer, String) - Static method in class org.owasp.encoder.Encode
-
- U_ESCAPE_LENGTH - Static variable in class org.owasp.encoder.JavaEncoder
-
The length of a Unicode escape, e.g.
- UHEX - Static variable in class org.owasp.encoder.URIEncoder
-
RFC 3986 -- "The uppercase hexadecimal digits 'A' through 'F' are equivalent to the lowercase digits 'a' through 'f',
respectively.
- underflow(CharBuffer, int, CharBuffer, int) - Static method in class org.owasp.encoder.Encoder
-
Internal helper method to properly position buffers after encoding up
until an underflow.
- Unicode - Class in org.owasp.encoder
-
ASCII and Unicode constants.
- Unicode() - Constructor for class org.owasp.encoder.Unicode
-
No instances.
- UNRESERVED_MASK_HIGH - Static variable in class org.owasp.encoder.URIEncoder
-
RFC 3986 Unreserved Characters.
- UNRESERVED_MASK_LOW - Static variable in class org.owasp.encoder.URIEncoder
-
RFC 3986 Unreserved Characters.
- UnsupportedContextException - Exception in org.owasp.encoder
-
UnsupportedContextException -- thrown when the encoding context
specified is not known or supported.
- UnsupportedContextException(String) - Constructor for exception org.owasp.encoder.UnsupportedContextException
-
Sole constructor.
- URI - Static variable in class org.owasp.encoder.Encoders
-
- URI_COMPONENT - Static variable in class org.owasp.encoder.Encoders
-
- URI_COMPONENT_ENCODER - Static variable in class org.owasp.encoder.Encoders
-
Encoder for components of URIs.
- URI_ENCODER - Static variable in class org.owasp.encoder.Encoders
-
Encoder for full URIs.
- URIEncoder - Class in org.owasp.encoder
-
URIEncoder -- An encoder for URI based contexts.
- URIEncoder() - Constructor for class org.owasp.encoder.URIEncoder
-
Constructor equivalent to @{code URIEncoder(Mode.FULL_URI)}.
- URIEncoder(URIEncoder.Mode) - Constructor for class org.owasp.encoder.URIEncoder
-
Constructor for the URIEncoder the specifies the encoding mode the URIEncoder will use.
- URIEncoder.Mode - Enum in org.owasp.encoder
-
Encoding mode of operation for URI encodes.
- UTF8_2_BYTE_FIRST_MSB - Static variable in class org.owasp.encoder.URIEncoder
-
When the encoded output requires 2 bytes, this is the high bits of the first byte.
- UTF8_3_BYTE_FIRST_MSB - Static variable in class org.owasp.encoder.URIEncoder
-
When the encoded output requires 3 bytes, this is the high bits of the first byte.
- UTF8_4_BYTE_FIRST_MSB - Static variable in class org.owasp.encoder.URIEncoder
-
When the encoded output requires 4 bytes, this is the high bits of the first byte.
- UTF8_BYTE_MSB - Static variable in class org.owasp.encoder.URIEncoder
-
For all characters in a 2-4 byte encoded sequence after the first this is the high bits of the input bytes.
- UTF8_MASK - Static variable in class org.owasp.encoder.URIEncoder
-
This is the mask containing 6-ones in the lower 6-bits.
- UTF8_SHIFT - Static variable in class org.owasp.encoder.URIEncoder
-
UTF-8 encodes 6-bits of the code-point in each output UTF-8 byte.
- _asciiOnly - Variable in class org.owasp.encoder.JavaScriptEncoder
-
True if the output should only include ASCII characters.
- _buffer - Variable in class org.owasp.encoder.ChainedEncoder
-
The buffer used to store the output of the first encoder before
sending as input to the second encoder.
- _buffer - Variable in class org.owasp.encoder.EncodedWriter
-
Where encoded output is buffered before sending on to the output writer.
- _encoder - Variable in class org.owasp.encoder.EncodedWriter
-
The encoder used to encode input to the output writer.
- _first - Variable in class org.owasp.encoder.ChainedEncoder
-
The first encoder to apply in sequence.
- _hasLeftOver - Variable in class org.owasp.encoder.EncodedWriter
-
Some encoders require more input or an explicit end-of-input flag before they will process the remaining characters of an
input buffer.
- _hexEncodeQuotes - Variable in class org.owasp.encoder.JavaScriptEncoder
-
True if quotation characters should be hex encoded.
- _highMask - Variable in class org.owasp.encoder.CSSEncoder
-
The bit-mask of unescaped characters in the range 64 to 127.
- _highMask - Variable in enum org.owasp.encoder.CSSEncoder.Mode
-
High bit-mask of unescaped characters.
- _highMask - Variable in class org.owasp.encoder.URIEncoder
-
The bit-mask of characters that do not need to be escaped, for character with code-points in the range 64 to 127.
- _highMask - Variable in enum org.owasp.encoder.URIEncoder.Mode
-
The high bit-mask--copied into the _highMask of the encoder.
- _input - Variable in class org.owasp.encoder.Encode.Buffer
-
The input buffer.
- _last - Variable in class org.owasp.encoder.ChainedEncoder
-
The second encoder to apply in sequence.
- _leftOverBuffer - Variable in class org.owasp.encoder.EncodedWriter
-
See comment on _hasLeftOver.
- _lowerMask - Variable in class org.owasp.encoder.ASCIIBits
-
Lower 64 bits.
- _lowMask - Variable in class org.owasp.encoder.CSSEncoder
-
The bit-mask of unescaped characters in the range 0 to 63.
- _lowMask - Variable in enum org.owasp.encoder.CSSEncoder.Mode
-
Low bit-mask of unescaped characters.
- _lowMask - Variable in class org.owasp.encoder.URIEncoder
-
The bit-mask of characters that do not need to be escaped, for characters with code-points in the range 0 to 63.
- _lowMask - Variable in enum org.owasp.encoder.URIEncoder.Mode
-
The low bit-mask--copied into the _lowMask of the encoder.
- _mode - Variable in class org.owasp.encoder.CSSEncoder
-
The mode of operation, used primarily for toString.
- _mode - Variable in class org.owasp.encoder.JavaScriptEncoder
-
The mode of operations--used for toString implementation.
- _mode - Variable in class org.owasp.encoder.URIEncoder
-
The encoding mode for this encoder--used primarily for toString().
- _mode - Variable in class org.owasp.encoder.XMLEncoder
-
The mode of operation--only really stored to provide a relevant toString
implementation.
- _out - Variable in class org.owasp.encoder.EncodedWriter
-
The wrapped writer.
- _output - Variable in class org.owasp.encoder.Encode.Buffer
-
The output buffer.
- _upperMask - Variable in class org.owasp.encoder.ASCIIBits
-
Upper 64 bits.
- _validMask - Variable in class org.owasp.encoder.XMLEncoder
-
The mask of valid characters extracted from the mode for efficiency.
- _validMask - Variable in enum org.owasp.encoder.XMLEncoder.Mode
-
The bit-mask of characters that do not need encoding in this mode.
- _validMasks - Variable in class org.owasp.encoder.JavaScriptEncoder
-
An array of 4 32-bit integers used as bitmasks to check if a character
needs encoding or not.