Uses of Class
org.owasp.esapi.errors.ValidationException

Packages that use ValidationException
org.owasp.esapi The ESAPI interfaces and Exception classes model the most important security functions to enterprise web applications. 
org.owasp.esapi.crypto This package contains ESAPI cryptography-related classes used throughout ESAPI. 
org.owasp.esapi.errors A set of exception classes designed to model the error conditions that frequently arise in enterprise web applications and web services. 
org.owasp.esapi.reference This package contains reference implementations of the ESAPI interfaces. 
org.owasp.esapi.reference.validation This package contains data format-specific validation rule functions. 
 

Uses of ValidationException in org.owasp.esapi
 

Methods in org.owasp.esapi that return ValidationException
 ValidationException ValidationErrorList.getError(java.lang.String context)
          Retrieves ValidationException for given context if one exists.
 

Methods in org.owasp.esapi that return types with arguments of type ValidationException
 java.util.List<ValidationException> ValidationErrorList.errors()
          Returns list of ValidationException, or empty list of no errors exist.
 

Methods in org.owasp.esapi with parameters of type ValidationException
 void ValidationErrorList.addError(java.lang.String context, ValidationException vex)
          Adds a new error to list with a unique named context.
 

Methods in org.owasp.esapi that throw ValidationException
 void ValidationRule.assertValid(java.lang.String context, java.lang.String input)
          Check if the input is valid, throw an Exception otherwise
 void Validator.assertValidFileUpload(java.lang.String context, java.lang.String filepath, java.lang.String filename, java.io.File parent, byte[] content, int maxBytes, java.util.List<java.lang.String> allowedExtensions, boolean allowNull)
          Validates the filepath, filename, and content of a file.
 void Validator.assertValidHTTPRequestParameterSet(java.lang.String context, javax.servlet.http.HttpServletRequest request, java.util.Set<java.lang.String> required, java.util.Set<java.lang.String> optional)
          Validates that the parameters in the current request contain all required parameters and only optional ones in addition.
 java.lang.String HTTPUtilities.getCookie(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          A safer replacement for getCookies() in HttpServletRequest that returns the canonicalized value of the named cookie after "global" validation against the general type defined in ESAPI.properties.
 java.lang.String HTTPUtilities.getCookie(java.lang.String name)
          Calls getCookie with the *current* response.
 java.util.List HTTPUtilities.getFileUploads()
          Calls getFileUploads with the *current* request, default upload directory, and default allowed file extensions
 java.util.List HTTPUtilities.getFileUploads(javax.servlet.http.HttpServletRequest request)
          Call getFileUploads with the specified request, default upload directory, and default allowed file extensions
 java.util.List HTTPUtilities.getFileUploads(javax.servlet.http.HttpServletRequest request, java.io.File finalDir)
          Call getFileUploads with the specified request, specified upload directory, and default allowed file extensions
 java.util.List HTTPUtilities.getFileUploads(javax.servlet.http.HttpServletRequest request, java.io.File destinationDir, java.util.List allowedExtensions)
          Extract uploaded files from a multipart HTTP requests.
 java.lang.String HTTPUtilities.getHeader(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          A safer replacement for getHeader() in HttpServletRequest that returns the canonicalized value of the named header after "global" validation against the general type defined in ESAPI.properties.
 java.lang.String HTTPUtilities.getHeader(java.lang.String name)
          Calls getHeader with the *current* request.
 java.lang.String HTTPUtilities.getParameter(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          A safer replacement for getParameter() in HttpServletRequest that returns the canonicalized value of the named parameter after "global" validation against the general type defined in ESAPI.properties.
 java.lang.String HTTPUtilities.getParameter(java.lang.String name)
          Calls getParameter with the *current* request.
 java.lang.Object ValidationRule.getValid(java.lang.String context, java.lang.String input)
          Parse the input, throw exceptions if validation fails
 java.lang.Object ValidationRule.getValid(java.lang.String context, java.lang.String input, ValidationErrorList errorList)
          Get a validated value, add the errors to an existing error list
 java.lang.String Validator.getValidCreditCard(java.lang.String context, java.lang.String input, boolean allowNull)
          Returns a canonicalized and validated credit card number as a String.
 java.util.Date Validator.getValidDate(java.lang.String context, java.lang.String input, java.text.DateFormat format, boolean allowNull)
          Returns a valid date as a Date.
 java.lang.String Validator.getValidDirectoryPath(java.lang.String context, java.lang.String input, java.io.File parent, boolean allowNull)
          Returns a canonicalized and validated directory path as a String, provided that the input maps to an existing directory that is an existing subdirectory (at any level) of the specified parent.
 java.lang.Double Validator.getValidDouble(java.lang.String context, java.lang.String input, double minValue, double maxValue, boolean allowNull)
          Returns a validated real number as a double.
 byte[] Validator.getValidFileContent(java.lang.String context, byte[] input, int maxBytes, boolean allowNull)
          Returns validated file content as a byte array.
 java.lang.String Validator.getValidFileName(java.lang.String context, java.lang.String input, java.util.List<java.lang.String> allowedExtensions, boolean allowNull)
          Returns a canonicalized and validated file name as a String.
 java.lang.String Validator.getValidInput(java.lang.String context, java.lang.String input, java.lang.String type, int maxLength, boolean allowNull)
          Returns canonicalized and validated input as a String.
 java.lang.String Validator.getValidInput(java.lang.String context, java.lang.String input, java.lang.String type, int maxLength, boolean allowNull, boolean canonicalize)
          Returns validated input as a String with optional canonicalization.
 java.lang.Integer Validator.getValidInteger(java.lang.String context, java.lang.String input, int minValue, int maxValue, boolean allowNull)
          Returns a validated integer.
 java.lang.String Validator.getValidListItem(java.lang.String context, java.lang.String input, java.util.List<java.lang.String> list)
          Returns the list item that exactly matches the canonicalized input.
 java.lang.Double Validator.getValidNumber(java.lang.String context, java.lang.String input, long minValue, long maxValue, boolean allowNull)
          Returns a validated number as a double within the range of minValue to maxValue.
 char[] Validator.getValidPrintable(java.lang.String context, char[] input, int maxLength, boolean allowNull)
          Returns canonicalized and validated printable characters as a byte array.
 java.lang.String Validator.getValidPrintable(java.lang.String context, java.lang.String input, int maxLength, boolean allowNull)
          Returns canonicalized and validated printable characters as a String.
 java.lang.String Validator.getValidRedirectLocation(java.lang.String context, java.lang.String input, boolean allowNull)
          Returns a canonicalized and validated redirect location as a String.
 java.lang.String Validator.getValidSafeHTML(java.lang.String context, java.lang.String input, int maxLength, boolean allowNull)
          Returns canonicalized and validated "safe" HTML that does not contain unwanted scripts in the body, attributes, CSS, URLs, or anywhere else.
 java.lang.String Validator.safeReadLine(java.io.InputStream inputStream, int maxLength)
          Reads from an input stream until end-of-line or a maximum number of characters.
 

Constructors in org.owasp.esapi that throw ValidationException
SafeFile(java.io.File parent, java.lang.String child)
           
SafeFile(java.lang.String path)
           
SafeFile(java.lang.String parent, java.lang.String child)
           
SafeFile(java.net.URI uri)
           
 

Uses of ValidationException in org.owasp.esapi.crypto
 

Methods in org.owasp.esapi.crypto that throw ValidationException
 void CryptoToken.addAttributes(java.util.Map<java.lang.String,java.lang.String> attrs)
          Add the specified collection of attributes to the current attributes.
 void CryptoToken.setAttribute(java.lang.String name, java.lang.String value)
          Set a name/value pair as an attribute.
 void CryptoToken.setUserAccountName(java.lang.String userAccountName)
          Set the user account name associated with this cryptographic token object.
 java.lang.String CryptoToken.updateToken(int additionalSecs)
          Update the (current) expiration time by adding the specified number of seconds to it and then re-encrypting with the current SecretKey that was used to construct this object.
 

Uses of ValidationException in org.owasp.esapi.errors
 

Subclasses of ValidationException in org.owasp.esapi.errors
 class ValidationAvailabilityException
           
 class ValidationUploadException
           
 

Uses of ValidationException in org.owasp.esapi.reference
 

Methods in org.owasp.esapi.reference that throw ValidationException
 void DefaultValidator.assertValidFileUpload(java.lang.String context, java.lang.String directorypath, java.lang.String filename, java.io.File parent, byte[] content, int maxBytes, java.util.List<java.lang.String> allowedExtensions, boolean allowNull)
          Validates the filepath, filename, and content of a file.
 void DefaultValidator.assertValidHTTPRequestParameterSet(java.lang.String context, javax.servlet.http.HttpServletRequest request, java.util.Set<java.lang.String> required, java.util.Set<java.lang.String> optional)
          Validates that the parameters in the current request contain all required parameters and only optional ones in addition.
 java.lang.String DefaultHTTPUtilities.getCookie(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          A safer replacement for getCookies() in HttpServletRequest that returns the canonicalized value of the named cookie after "global" validation against the general type defined in ESAPI.properties.
 java.lang.String DefaultHTTPUtilities.getCookie(java.lang.String name)
          Calls getCookie with the *current* response.
 java.util.List<java.io.File> DefaultHTTPUtilities.getFileUploads()
          Calls getFileUploads with the *current* request, default upload directory, and default allowed file extensions
 java.util.List<java.io.File> DefaultHTTPUtilities.getFileUploads(javax.servlet.http.HttpServletRequest request)
          Call getFileUploads with the specified request, default upload directory, and default allowed file extensions
 java.util.List<java.io.File> DefaultHTTPUtilities.getFileUploads(javax.servlet.http.HttpServletRequest request, java.io.File finalDir)
          Call getFileUploads with the specified request, specified upload directory, and default allowed file extensions
 java.util.List<java.io.File> DefaultHTTPUtilities.getFileUploads(javax.servlet.http.HttpServletRequest request, java.io.File finalDir, java.util.List allowedExtensions)
          Extract uploaded files from a multipart HTTP requests.
 java.lang.String DefaultHTTPUtilities.getHeader(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          A safer replacement for getHeader() in HttpServletRequest that returns the canonicalized value of the named header after "global" validation against the general type defined in ESAPI.properties.
 java.lang.String DefaultHTTPUtilities.getHeader(java.lang.String name)
          Calls getHeader with the *current* request.
 java.lang.String DefaultHTTPUtilities.getParameter(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          A safer replacement for getParameter() in HttpServletRequest that returns the canonicalized value of the named parameter after "global" validation against the general type defined in ESAPI.properties.
 java.lang.String DefaultHTTPUtilities.getParameter(java.lang.String name)
          Calls getParameter with the *current* request.
 java.lang.String DefaultValidator.getValidCreditCard(java.lang.String context, java.lang.String input, boolean allowNull)
          Returns a canonicalized and validated credit card number as a String.
 java.util.Date DefaultValidator.getValidDate(java.lang.String context, java.lang.String input, java.text.DateFormat format, boolean allowNull)
          Returns a valid date as a Date.
 java.lang.String DefaultValidator.getValidDirectoryPath(java.lang.String context, java.lang.String input, java.io.File parent, boolean allowNull)
          Returns a canonicalized and validated directory path as a String, provided that the input maps to an existing directory that is an existing subdirectory (at any level) of the specified parent.
 java.lang.Double DefaultValidator.getValidDouble(java.lang.String context, java.lang.String input, double minValue, double maxValue, boolean allowNull)
          Returns a validated real number as a double.
 byte[] DefaultValidator.getValidFileContent(java.lang.String context, byte[] input, int maxBytes, boolean allowNull)
          Returns validated file content as a byte array.
 java.lang.String DefaultValidator.getValidFileName(java.lang.String context, java.lang.String input, java.util.List<java.lang.String> allowedExtensions, boolean allowNull)
          Returns a canonicalized and validated file name as a String.
 java.lang.String DefaultValidator.getValidInput(java.lang.String context, java.lang.String input, java.lang.String type, int maxLength, boolean allowNull)
          Validates data received from the browser and returns a safe version.
 java.lang.String DefaultValidator.getValidInput(java.lang.String context, java.lang.String input, java.lang.String type, int maxLength, boolean allowNull, boolean canonicalize)
          Validates data received from the browser and returns a safe version.
 java.lang.Integer DefaultValidator.getValidInteger(java.lang.String context, java.lang.String input, int minValue, int maxValue, boolean allowNull)
          Returns a validated integer.
 java.lang.String DefaultValidator.getValidListItem(java.lang.String context, java.lang.String input, java.util.List<java.lang.String> list)
          Returns the list item that exactly matches the canonicalized input.
 java.lang.Double DefaultValidator.getValidNumber(java.lang.String context, java.lang.String input, long minValue, long maxValue, boolean allowNull)
          Returns a validated number as a double within the range of minValue to maxValue.
 char[] DefaultValidator.getValidPrintable(java.lang.String context, char[] input, int maxLength, boolean allowNull)
          Returns canonicalized and validated printable characters as a byte array.
 java.lang.String DefaultValidator.getValidPrintable(java.lang.String context, java.lang.String input, int maxLength, boolean allowNull)
          Returns canonicalized and validated printable characters as a String.
 java.lang.String DefaultValidator.getValidRedirectLocation(java.lang.String context, java.lang.String input, boolean allowNull)
          Returns a canonicalized and validated redirect location as a String.
 java.lang.String DefaultValidator.getValidSafeHTML(java.lang.String context, java.lang.String input, int maxLength, boolean allowNull)
          Returns canonicalized and validated "safe" HTML that does not contain unwanted scripts in the body, attributes, CSS, URLs, or anywhere else.
 java.lang.String DefaultValidator.safeReadLine(java.io.InputStream in, int max)
          Reads from an input stream until end-of-line or a maximum number of characters.
 

Uses of ValidationException in org.owasp.esapi.reference.validation
 

Methods in org.owasp.esapi.reference.validation that throw ValidationException
 void BaseValidationRule.assertValid(java.lang.String context, java.lang.String input)
          Check if the input is valid, throw an Exception otherwise
 java.lang.String StringValidationRule.getValid(java.lang.String context, java.lang.String input)
          Parse the input, throw exceptions if validation fails
 java.lang.Double NumberValidationRule.getValid(java.lang.String context, java.lang.String input)
          Parse the input, throw exceptions if validation fails
 java.lang.Integer IntegerValidationRule.getValid(java.lang.String context, java.lang.String input)
           
 java.lang.String HTMLValidationRule.getValid(java.lang.String context, java.lang.String input)
          Parse the input, throw exceptions if validation fails
 java.util.Date DateValidationRule.getValid(java.lang.String context, java.lang.String input)
          Parse the input, throw exceptions if validation fails
 java.lang.String CreditCardValidationRule.getValid(java.lang.String context, java.lang.String input)
          Parse the input, throw exceptions if validation fails
 java.lang.Object BaseValidationRule.getValid(java.lang.String context, java.lang.String input, ValidationErrorList errorList)
          Get a validated value, add the errors to an existing error list
 



Copyright © 2011 The Open Web Application Security Project (OWASP). All Rights Reserved.