railo.runtime.functions.owasp
Class ESAPIEncode

java.lang.Object
  extended by railo.runtime.functions.owasp.ESAPIEncode
All Implemented Interfaces:
Serializable, Function

public class ESAPIEncode
extends Object
implements Function

See Also:
Serialized Form

Field Summary
static short ENC_BASE64
           
static short ENC_CSS
           
static short ENC_DN
           
static short ENC_HTML
           
static short ENC_HTML_ATTR
           
static short ENC_JAVA_SCRIPT
           
static short ENC_LDAP
           
static short ENC_OS
           
static short ENC_SQl
           
static short ENC_URL
           
static short ENC_VB_SCRIPT
           
static short ENC_XML
           
static short ENC_XML_ATTR
           
static short ENC_XPATH
           
 
Constructor Summary
ESAPIEncode()
           
 
Method Summary
static String call(PageContext pc, String strEncodeFor, String value)
           
static String canonicalize(String input, boolean restrictMultiple, boolean restrictMixed)
           
static String encode(String item, short encFor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENC_BASE64

public static final short ENC_BASE64
See Also:
Constant Field Values

ENC_CSS

public static final short ENC_CSS
See Also:
Constant Field Values

ENC_DN

public static final short ENC_DN
See Also:
Constant Field Values

ENC_HTML

public static final short ENC_HTML
See Also:
Constant Field Values

ENC_HTML_ATTR

public static final short ENC_HTML_ATTR
See Also:
Constant Field Values

ENC_JAVA_SCRIPT

public static final short ENC_JAVA_SCRIPT
See Also:
Constant Field Values

ENC_LDAP

public static final short ENC_LDAP
See Also:
Constant Field Values

ENC_OS

public static final short ENC_OS
See Also:
Constant Field Values

ENC_SQl

public static final short ENC_SQl
See Also:
Constant Field Values

ENC_URL

public static final short ENC_URL
See Also:
Constant Field Values

ENC_VB_SCRIPT

public static final short ENC_VB_SCRIPT
See Also:
Constant Field Values

ENC_XML

public static final short ENC_XML
See Also:
Constant Field Values

ENC_XML_ATTR

public static final short ENC_XML_ATTR
See Also:
Constant Field Values

ENC_XPATH

public static final short ENC_XPATH
See Also:
Constant Field Values
Constructor Detail

ESAPIEncode

public ESAPIEncode()
Method Detail

encode

public static String encode(String item,
                            short encFor)
                     throws PageException
Throws:
PageException

call

public static String call(PageContext pc,
                          String strEncodeFor,
                          String value)
                   throws PageException
Throws:
PageException

canonicalize

public static String canonicalize(String input,
                                  boolean restrictMultiple,
                                  boolean restrictMixed)


Copyright © 2012 Railo