|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.servlet.security.Utils
public class Utils
Constructor Summary | |
---|---|
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 |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static String encodeXSS(String text)
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.ServletContext
public 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 desired
public static boolean isSSLRequired(HttpServletRequest request)
request
-
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |