|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
weblogic.servlet.security.Utils
public class Utils
| Method Summary | |
|---|---|
static String |
encodeXSS(String text)This helper method can be used to help prevent Cross Site Scripting vulnerabilities. |
static String |
getConfiguredAuthMethod(HttpServletRequest request)Returns the auth-method as configured in web.xml for the webapp |
static String |
getConfiguredAuthMethod(ServletContext servletContext)Returns the auth-method as configured in web.xml for the webapp |
static boolean |
isSSLRequired(HttpServletRequest request)Checks whether SSL is required for the current request as per the security-constraints defined in the deployment descriptors. |
static boolean |
isSSLRequired(ServletContext servletContext, String relativeURI, String method)Checks whether SSL is required for the given URI and method as per the security-constraints defined in the deployment descriptors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String encodeXSS(String text)
A full description of Cross Site Scripting (XSS) vulnerabilities can be found at http://www.cert.org/tech_tips/malicious_code_mitigation.html.
text - This is the dynamic text which is going to be sent as html (eg. URL)public static String getConfiguredAuthMethod(ServletContext servletContext)
servletContext - javax.servlet.ServletContextpublic static String getConfiguredAuthMethod(HttpServletRequest request)
request - HttpServletRequest
public static boolean isSSLRequired(ServletContext servletContext,
String relativeURI,
String method)
servletContext - javax.servlet.ServletContextrelativeURI - : should not include the context pathmethod - : GET/POST/PUT etc for which the check is desiredpublic static boolean isSSLRequired(HttpServletRequest request)
request -
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||