Uses of Class
org.owasp.esapi.errors.ValidationException
-
Packages that use ValidationException Package Description org.owasp.esapi The ESAPI interfaces andExceptionclasses 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 Modifier and Type Method Description ValidationExceptionValidationErrorList. 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 Modifier and Type Method Description 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 Modifier and Type Method Description voidValidationErrorList. 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 Modifier and Type Method Description voidValidationRule. assertValid(java.lang.String context, java.lang.String input)Check if the input is valid, throw an Exception otherwisevoidValidator. 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.voidValidator. 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.StringHTTPUtilities. getCookie(java.lang.String name)Calls getCookie with the *current* response.java.lang.StringHTTPUtilities. 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.util.ListHTTPUtilities. getFileUploads()Calls getFileUploads with the *current* request, default upload directory, and default allowed file extensionsjava.util.ListHTTPUtilities. getFileUploads(javax.servlet.http.HttpServletRequest request)Call getFileUploads with the specified request, default upload directory, and default allowed file extensionsjava.util.ListHTTPUtilities. getFileUploads(javax.servlet.http.HttpServletRequest request, java.io.File finalDir)Call getFileUploads with the specified request, specified upload directory, and default allowed file extensionsjava.util.ListHTTPUtilities. getFileUploads(javax.servlet.http.HttpServletRequest request, java.io.File destinationDir, java.util.List allowedExtensions)Extract uploaded files from a multipart HTTP requests.java.lang.StringHTTPUtilities. getHeader(java.lang.String name)Calls getHeader with the *current* request.java.lang.StringHTTPUtilities. 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.StringHTTPUtilities. getParameter(java.lang.String name)Calls getParameter with the *current* request.java.lang.StringHTTPUtilities. 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.ObjectValidationRule. getValid(java.lang.String context, java.lang.String input)Parse the input, throw exceptions if validation failsjava.lang.ObjectValidationRule. getValid(java.lang.String context, java.lang.String input, ValidationErrorList errorList)Get a validated value, add the errors to an existing error listjava.lang.StringValidator. getValidCreditCard(java.lang.String context, java.lang.String input, boolean allowNull)Returns a canonicalized and validated credit card number as a String.java.util.DateValidator. getValidDate(java.lang.String context, java.lang.String input, java.text.DateFormat format, boolean allowNull)Returns a valid date as a Date.java.lang.StringValidator. 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.DoubleValidator. 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.StringValidator. 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.StringValidator. 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.StringValidator. 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.IntegerValidator. getValidInteger(java.lang.String context, java.lang.String input, int minValue, int maxValue, boolean allowNull)Returns a validated integer.java.lang.StringValidator. 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.DoubleValidator. 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.StringValidator. getValidPrintable(java.lang.String context, java.lang.String input, int maxLength, boolean allowNull)Returns canonicalized and validated printable characters as a String.java.lang.StringValidator. getValidRedirectLocation(java.lang.String context, java.lang.String input, boolean allowNull)Returns a canonicalized and validated redirect location as a String.java.lang.StringValidator. 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.StringValidator. 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 Constructor Description 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 Modifier and Type Method Description voidCryptoToken. addAttributes(java.util.Map<java.lang.String,java.lang.String> attrs)Add the specified collection of attributes to the current attributes.voidCryptoToken. setAttribute(java.lang.String name, java.lang.String value)Set a name/value pair as an attribute.voidCryptoToken. setUserAccountName(java.lang.String userAccountName)Set the user account name associated with this cryptographic token object.java.lang.StringCryptoToken. updateToken(int additionalSecs)Update the (current) expiration time by adding the specified number of seconds to it and then re-encrypting with the currentSecretKeythat was used to construct this object. -
Uses of ValidationException in org.owasp.esapi.errors
Subclasses of ValidationException in org.owasp.esapi.errors Modifier and Type Class Description classValidationAvailabilityExceptionclassValidationUploadException -
Uses of ValidationException in org.owasp.esapi.reference
Methods in org.owasp.esapi.reference that throw ValidationException Modifier and Type Method Description voidDefaultValidator. 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.voidDefaultValidator. 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.StringDefaultHTTPUtilities. getCookie(java.lang.String name)Calls getCookie with the *current* response.java.lang.StringDefaultHTTPUtilities. 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.util.List<java.io.File>DefaultHTTPUtilities. getFileUploads()Calls getFileUploads with the *current* request, default upload directory, and default allowed file extensionsjava.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 extensionsjava.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 extensionsjava.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.StringDefaultHTTPUtilities. getHeader(java.lang.String name)Calls getHeader with the *current* request.java.lang.StringDefaultHTTPUtilities. 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.StringDefaultHTTPUtilities. getParameter(java.lang.String name)Calls getParameter with the *current* request.java.lang.StringDefaultHTTPUtilities. 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.StringDefaultValidator. getValidCreditCard(java.lang.String context, java.lang.String input, boolean allowNull)Returns a canonicalized and validated credit card number as a String.java.util.DateDefaultValidator. getValidDate(java.lang.String context, java.lang.String input, java.text.DateFormat format, boolean allowNull)Returns a valid date as a Date.java.lang.StringDefaultValidator. 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.DoubleDefaultValidator. 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.StringDefaultValidator. 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.StringDefaultValidator. 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.StringDefaultValidator. 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.IntegerDefaultValidator. getValidInteger(java.lang.String context, java.lang.String input, int minValue, int maxValue, boolean allowNull)Returns a validated integer.java.lang.StringDefaultValidator. 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.DoubleDefaultValidator. 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.StringDefaultValidator. getValidPrintable(java.lang.String context, java.lang.String input, int maxLength, boolean allowNull)Returns canonicalized and validated printable characters as a String.java.lang.StringDefaultValidator. getValidRedirectLocation(java.lang.String context, java.lang.String input, boolean allowNull)Returns a canonicalized and validated redirect location as a String.java.lang.StringDefaultValidator. 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.StringDefaultValidator. 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 Modifier and Type Method Description voidBaseValidationRule. assertValid(java.lang.String context, java.lang.String input)Check if the input is valid, throw an Exception otherwisejava.lang.ObjectBaseValidationRule. getValid(java.lang.String context, java.lang.String input, ValidationErrorList errorList)Get a validated value, add the errors to an existing error listjava.lang.StringCreditCardValidationRule. getValid(java.lang.String context, java.lang.String input)Parse the input, throw exceptions if validation failsjava.util.DateDateValidationRule. getValid(java.lang.String context, java.lang.String input)Parse the input, throw exceptions if validation failsjava.lang.StringHTMLValidationRule. getValid(java.lang.String context, java.lang.String input)Parse the input, throw exceptions if validation failsjava.lang.IntegerIntegerValidationRule. getValid(java.lang.String context, java.lang.String input)java.lang.DoubleNumberValidationRule. getValid(java.lang.String context, java.lang.String input)Parse the input, throw exceptions if validation failsjava.lang.StringStringValidationRule. getValid(java.lang.String context, java.lang.String input)Parse the input, throw exceptions if validation fails
-