public class DeprecatedStringUtils extends Object
This Class was created to delegate all portal internal usages of StringUtils to the new com.sap.security.core.server.csi.XSSEncode Do not use it in any future development
Most of the methods of this class are depreciated. Please use the class XSSEncoder for encoding / escaping according the SAP XSS Secure Programming GuideXSSEncoder| Modifier and Type | Field and Description |
|---|---|
protected static StringBufferPool |
BUFFER_POOL_URLS
Deprecated.
|
protected static int |
URL_SIZE
Deprecated.
|
| Constructor and Description |
|---|
DeprecatedStringUtils()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeScriptEndTag(String pStr)
Deprecated.
Use the class XSSEncoder instead
|
static String |
escapeToAttributeValue(String input)
Deprecated.
Use the class XSSEncoder method encodeHTML instead
|
static String |
escapeToAttributeValue(String input,
int maxLength)
Deprecated.
Use the class XSSEncoder method encodeHTML instead
|
static String |
escapeToHTML(String input)
Deprecated.
Use the class XSSEncoder method encodeHTML instead
|
static String |
escapeToHTML(String input,
int maxLength)
Deprecated.
Use the class XSSEncoder method encodeHTML instead
|
static String |
escapeToJS(String input)
Deprecated.
Use the class XSSEncoder method encodeJavaScript instead
|
static String |
escapeToJS(String input,
int maxLength)
Deprecated.
Use the class XSSEncoder method encodeJavaScript instead
|
static String |
escapeToURL(String input)
Deprecated.
Use the class XSSEncoder method encodeHTML instead
|
static String |
escapeToURL(String input,
int maxLength)
Deprecated.
Use the class XSSEncoder method encodeHTML instead
|
static String |
urlEncode(String s)
Deprecated.
Use the class XSSEncoder method encodeURL instead
|
static String |
urlEncode(String s,
char[] forceEncode)
Deprecated.
Use the class XSSEncoder method encodeURL instead
|
static SharedString |
urlEncodeShared(String s,
char[] forceEncode)
Deprecated.
Use the class XSSEncoder method encodeURL instead
|
protected static StringBufferPool BUFFER_POOL_URLS
protected static int URL_SIZE
public static String escapeToJS(String input)
input - The string to parse.public static String escapeToJS(String input, int maxLength)
input - The string to parse.maxLength - The maximum length the String input SHOULD havepublic static String escapeToHTML(String input)
input - The string to parse.public static String escapeToHTML(String input, int maxLength)
input - The string to parse.maxLength - The maximum length the String input SHOULD havepublic static String escapeToAttributeValue(String input)
input - The string to parse.public static String escapeToAttributeValue(String input, int maxLength)
input - The string to parse.maxLength - The maximum length the String input SHOULD havepublic static String escapeToURL(String input)
input - The string to parse.public static String escapeToURL(String input, int maxLength)
input - The string to parse.maxLength - The maximum length the String input SHOULD havepublic static String escapeScriptEndTag(String pStr)
pStr - input The string to parse.public static String urlEncode(String s, char[] forceEncode)
s - The String to be encodedforceEncode - An array of chars that are to be encoded
explicitly. Note: forceEncode should NOT contain digits nor
the percent sign!!public static String urlEncode(String s)
s - The String to be encodedpublic static SharedString urlEncodeShared(String s, char[] forceEncode)
s - The Shared String to be encoded.
forceEncode - An array of chars that are to be encoded
explicitly. Note: forceEncode should NOT contain digits nor
the percent sign!!| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice