Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
L
M
N
O
P
R
S
T
U
V
A
add(Throwable)
- Method in class org.vladnput.
ParseErrors
Add the error message from
t.getMessage()
.
add(String)
- Method in class org.vladnput.
ParseErrors
Add the error message.
add(VladError)
- Method in class org.vladnput.
VladErrors
Add
error
to this list
addDetail(String)
- Method in class org.vladnput.
VladError
Adds a detailed error message.
addMessage(List<String>, String)
- Method in class org.vladnput.types.
VladType
Adds the name of the message for argument
name
to
msgs
.
ALL_TYPES
- Static variable in class org.vladnput.types.
CreditCardType
ALLOW_EMPTY_KEY
- Static variable in class org.vladnput.types.
VladType
Name of the allow empty argument.
allowEmpty()
- Method in class org.vladnput.types.
VladType
AMERICAN_EXPRESS
- Static variable in class org.vladnput.types.
CreditCardType
B
booleanKey(Map<String, Object>, String)
- Method in class org.vladnput.types.
VladType
Removes and returns the mapping associated with
key
in
args
, or
null
if there is not one.
booleanKey(Map<String, Object>, String)
- Static method in class org.vladnput.
VladUtil
Removes and returns the mapping associated with
key
in
args
, or
null
if there is not one.
C
canonicalizeParamName(String)
- Method in interface org.vladnput.
RequestCanonicalizer
Returns the canonical form of a parameter name.
CASE_INSENSITIVE_KEY
- Static variable in class org.vladnput.types.
StringType
checkArg(String, Object, Map<String, Object>)
- Static method in class org.vladnput.types.
CreditCardType
checkArg(String, Object, Map<String, Object>)
- Static method in class org.vladnput.types.
DateType
checkArg(String, Object, Map<String, Object>)
- Static method in class org.vladnput.types.
IntegerType
checkArg(String, Object, Map<String, Object>)
- Static method in class org.vladnput.types.
StringType
checkArg(String, Object, Map<String, Object>)
- Static method in class org.vladnput.types.
URLType
checkArg(String, Object, Map<String, Object>)
- Static method in class org.vladnput.types.
VladType
Checks argument with
name
and
value
for validity.
checkArgs(Map<String, Object>)
- Static method in class org.vladnput.types.
CreditCardType
checkArgs(Map<String, Object>)
- Static method in class org.vladnput.types.
StringType
CreditCardType
- Class in
org.vladnput.types
CreditCardType(Map<String, Object>)
- Constructor for class org.vladnput.types.
CreditCardType
D
dateKey(Map<String, Object>, String, DateFormat)
- Method in class org.vladnput.types.
VladType
Removes and returns the string mapping associated with
key
in
args
after parsing it as a date, or
null
if there is not one.
dateKey(Map<String, Object>, String, DateFormat)
- Static method in class org.vladnput.
VladUtil
Removes and returns the string mapping associated with
key
in
args
after parsing it as a date, or
null
if there is not one.
DateType
- Class in
org.vladnput.types
DateType(Map<String, Object>)
- Constructor for class org.vladnput.types.
DateType
doValidate(List<String>, String, VladMessageVars)
- Method in class org.vladnput.types.
CreditCardType
doValidate(List<String>, String, VladMessageVars)
- Method in class org.vladnput.types.
DateType
doValidate(List<String>, String, VladMessageVars)
- Method in class org.vladnput.types.
EmailType
doValidate(List<String>, String, VladMessageVars)
- Method in class org.vladnput.types.
IntegerType
doValidate(List<String>, String, VladMessageVars)
- Method in class org.vladnput.types.
StringType
doValidate(List<String>, String, VladMessageVars)
- Method in class org.vladnput.types.
URLType
doValidate(List<String>, String, VladMessageVars)
- Method in class org.vladnput.types.
VladType
E
EARLIEST_ALLOWED_KEY
- Static variable in class org.vladnput.types.
DateType
EmailType
- Class in
org.vladnput.types
EmailType(Map<String, Object>)
- Constructor for class org.vladnput.types.
EmailType
F
floatKey(Map<String, Object>, String)
- Method in class org.vladnput.types.
VladType
Removes and returns the mapping associated with
key
in
args
, or
null
if there is not one.
floatKey(Map<String, Object>, String)
- Static method in class org.vladnput.
VladUtil
Removes and returns the mapping associated with
key
in
args
, or
null
if there is not one.
FORMAT_KEY
- Static variable in class org.vladnput.types.
CreditCardType
FORMAT_KEY
- Static variable in class org.vladnput.types.
DateType
G
get(String)
- Method in class org.vladnput.
VladMessageVars
Gets the value of the variable named
var
.
getDetails()
- Method in class org.vladnput.
VladError
Gets the detailed messages.
getEnforce()
- Method in class org.vladnput.
VladError
Returns true if the error should be enforced (causing the request to be rejected), false otherwise.
getErrors()
- Method in class org.vladnput.
ParseErrors
Allows iterating over the errors.
getErrors()
- Method in exception org.vladnput.
ParseException
Gets the parse errors
getErrors()
- Method in class org.vladnput.
VladErrors
Returns the actual errors, which is a list of
VladError
objects.
getMaxLog()
- Method in class org.vladnput.
VladError
Returns the maximum number of times this url and parameter name combination should be logged.
getMessage()
- Method in exception org.vladnput.
ParseException
Returns a potentially multiline string containing all the errors as reported by
getErrors().reportErrors(PrintWriter)
.
getMessage()
- Method in class org.vladnput.
VladError
Returns the generic error message
getMessage(String, VladMessageVars)
- Method in class org.vladnput.
VladMessages
Returns the message named
name
after replacing any variables within it with the values from
vars
.
getMessages()
- Method in class org.vladnput.types.
VladType
Gets the messages for this type.
getName()
- Method in exception org.vladnput.types.
InvalidArgException
getName()
- Method in exception org.vladnput.types.
InvalidArgValueException
getName()
- Method in exception org.vladnput.types.
MissingArgException
getParamName()
- Method in class org.vladnput.
VladError
Returns the name of the invalid parameter
getParamValue()
- Method in class org.vladnput.
VladError
Returns the value of the invalid parameter
getPath(HttpServletRequest)
- Method in interface org.vladnput.
RequestCanonicalizer
Returns the URL to match against the Vlad file from the given
request
.
getPattern()
- Method in class org.vladnput.types.
StringType
getRemoteAddr()
- Method in class org.vladnput.
VladError
Returns the IP address of client that issued the invalid request
getUrl()
- Method in class org.vladnput.
VladError
Returns the URL of the invalid request
getValue()
- Method in exception org.vladnput.types.
InvalidArgValueException
H
hasEnforcedErrors()
- Method in class org.vladnput.
VladErrors
hasErrors()
- Method in class org.vladnput.
ParseErrors
Check if this object has any errors.
hasErrors()
- Method in class org.vladnput.
VladErrors
Returns
true
if there are errors,
false
otherwise.
I
INTEGER_KEY
- Static variable in class org.vladnput.types.
IntegerType
integerKey(Map<String, Object>, String)
- Method in class org.vladnput.types.
VladType
Removes and returns the mapping associated with
key
in
args
, or
null
if there is not one.
integerKey(Map<String, Object>, String)
- Static method in class org.vladnput.
VladUtil
Removes and returns the mapping associated with
key
in
args
, or
null
if there is not one.
IntegerType
- Class in
org.vladnput.types
IntegerType(Map<String, Object>)
- Constructor for class org.vladnput.types.
IntegerType
interpolate(String, VladMessageVars)
- Static method in class org.vladnput.
VladUtil
Replaces all variable references within
text
with the variable values in
vars
.
INTERPOLATE_REGEX
- Static variable in class org.vladnput.
VladUtil
The regular expression defining what variables in message bodies look like.
InvalidArgException
- Exception in
org.vladnput.types
InvalidArgException(String)
- Constructor for exception org.vladnput.types.
InvalidArgException
InvalidArgValueException
- Exception in
org.vladnput.types
InvalidArgValueException(String, Object)
- Constructor for exception org.vladnput.types.
InvalidArgValueException
isPartial()
- Method in class org.vladnput.types.
StringType
isRelative()
- Method in class org.vladnput.types.
URLType
isSensitive()
- Method in class org.vladnput.types.
CreditCardType
Returns true because credit cards are always sensitive.
isSensitive()
- Method in class org.vladnput.types.
VladType
isValidFormat(String)
- Static method in class org.vladnput.
VladMessages
Checks
message
to ensure that any variables references within it are well formed.
isValidMessageName(String)
- Static method in class org.vladnput.
VladMessages
Checks if
name
is a valid message name.
isValidVar(String)
- Static method in class org.vladnput.
VladMessageVars
Returns true if
key
is a valid variable name, false otherwise.
iterator()
- Method in class org.vladnput.
VladErrors
Allows iteration over the errors.
L
LATEST_ALLOWED_KEY
- Static variable in class org.vladnput.types.
DateType
LEN_VAR
- Static variable in class org.vladnput.types.
VladType
Message variable for the length of the actual value.
logErrors(VladErrors)
- Method in class org.vladnput.
VladLogger
Logs
errors
to the Log4j logger.
LUHN_KEY
- Static variable in class org.vladnput.types.
CreditCardType
M
MASTERCARD
- Static variable in class org.vladnput.types.
CreditCardType
MAX_KEY
- Static variable in class org.vladnput.types.
IntegerType
MAX_LEN_KEY
- Static variable in class org.vladnput.types.
VladType
Name of the maximum allowed length argument.
MIN_KEY
- Static variable in class org.vladnput.types.
IntegerType
MIN_LEN_KEY
- Static variable in class org.vladnput.types.
VladType
Name of the minimum required length argument.
MissingArgException
- Exception in
org.vladnput.types
MissingArgException(String)
- Constructor for exception org.vladnput.types.
MissingArgException
MSG_KEY
- Static variable in class org.vladnput.
VladMessages
Name of the generic message
msgFor(String)
- Static method in class org.vladnput.types.
VladType
Returns the name of the message argument for
arg
.
N
newArrayList()
- Static method in class org.vladnput.
VladUtil
Uses type-inference to make ArrayList declarations compact.
newHashMap()
- Static method in class org.vladnput.
VladUtil
Uses type-inference to make HashMap declarations compact.
newHashSet()
- Static method in class org.vladnput.
VladUtil
Uses type-inference to make HashSet declarations compact.
newLinkedHashMap()
- Static method in class org.vladnput.
VladUtil
Uses type-inference to make LinkedHashMap declarations compact.
O
org.vladnput
- package org.vladnput
org.vladnput.types
- package org.vladnput.types
P
PARAM_DESC_VAR
- Static variable in class org.vladnput.
VladMessageVars
PARAM_VAR
- Static variable in class org.vladnput.
VladMessageVars
parse(File)
- Static method in class org.vladnput.
VladConfig
Parse a Vlad configuration from
file
.
parseDate(String, DateFormat)
- Static method in class org.vladnput.
VladUtil
Parses
value
as a date using
format
.
ParseErrors
- Class in
org.vladnput
Class for storing errors found during the parsing of a Vlad configuration file.
ParseErrors()
- Constructor for class org.vladnput.
ParseErrors
ParseException
- Exception in
org.vladnput
Exception thrown when parsing a Vlad file fails.
ParseException(ParseErrors)
- Constructor for exception org.vladnput.
ParseException
Constructs a parsing exception
parseResource(String)
- Static method in class org.vladnput.
VladConfig
Parse a Vlad configuration from
resourceName
.
PARTIAL_KEY
- Static variable in class org.vladnput.types.
StringType
put(String, String)
- Method in class org.vladnput.
VladMessageVars
Sets the value of the variable named
var
to
value
.
R
REGEX_KEY
- Static variable in class org.vladnput.types.
StringType
registerVar(String)
- Static method in class org.vladnput.
VladMessageVars
Registers the variable named
var
as a valid variable name that may appear inside a message body as
${var}
.
registerVars(Collection<String>)
- Static method in class org.vladnput.
VladMessageVars
A bulk version of
registerVar(String)
for a collection of String variable names.
RELATIVE_KEY
- Static variable in class org.vladnput.types.
URLType
remove(String)
- Method in class org.vladnput.
VladMessageVars
Unsets the value of the variable named
var
.
reportErrors(PrintWriter)
- Method in class org.vladnput.
ParseErrors
reportErrors(PrintStream)
- Method in class org.vladnput.
ParseErrors
REQ_MSG_KEY
- Static variable in class org.vladnput.
VladMessages
Name of the required message
RequestCanonicalizer
- Interface in
org.vladnput
This interface can be implemented to customize the way that the request URL and request parameters are matched against the Vlad file.
S
SENSITIVE_KEY
- Static variable in class org.vladnput.types.
VladType
Name of the sensitive argument.
SENSITIVE_VALUE
- Static variable in class org.vladnput.
VladConfig
The value that is put into
VladError
objects instead of the real value for parameters and types that are sensitive, e.g.
stringKey(Map<String, Object>, String)
- Method in class org.vladnput.types.
VladType
Removes and returns the mapping associated with
key
in
args
, or
null
if there is not one.
stringKey(Map<String, Object>, String)
- Static method in class org.vladnput.
VladUtil
Removes and returns the mapping associated with
key
in
args
, or
null
if there is not one.
StringType
- Class in
org.vladnput.types
StringType(Map<String, Object>)
- Constructor for class org.vladnput.types.
StringType
T
TOO_FEW_MSG_KEY
- Static variable in class org.vladnput.
VladMessages
Name of the too few values given message
TOO_MANY_MSG_KEY
- Static variable in class org.vladnput.
VladMessages
Name of the too many values given message
toString()
- Method in class org.vladnput.types.
VladType
toString()
- Method in class org.vladnput.
VladConfig
toString()
- Method in class org.vladnput.
VladError
toString()
- Method in class org.vladnput.
VladErrors
TYPE_CODES
- Static variable in class org.vladnput.types.
CreditCardType
TYPES_ALLOWED_KEY
- Static variable in class org.vladnput.types.
CreditCardType
U
UNKNOWN_PARAM_MSG_KEY
- Static variable in class org.vladnput.
VladMessages
Name of the unknown parameter message
URI
- Static variable in class org.vladnput.
VladMessageVars
URLType
- Class in
org.vladnput.types
URLType(Map<String, Object>)
- Constructor for class org.vladnput.types.
URLType
V
VALID_KEYS
- Static variable in class org.vladnput.types.
CreditCardType
VALID_KEYS
- Static variable in class org.vladnput.types.
DateType
VALID_KEYS
- Static variable in class org.vladnput.types.
IntegerType
VALID_KEYS
- Static variable in class org.vladnput.types.
VladType
Set of valid argument names
VALID_KEYS
- Static variable in class org.vladnput.
VladMessages
Set of valid message names.
validate(String, VladMessageVars)
- Method in class org.vladnput.types.
VladType
Checks
value
for validity.
validate(HttpServletRequest, RequestCanonicalizer)
- Method in class org.vladnput.
VladConfig
Validates the
request
against this Vlad configuration.
VALUE_VAR
- Static variable in class org.vladnput.
VladMessageVars
VISA
- Static variable in class org.vladnput.types.
CreditCardType
VladConfig
- Class in
org.vladnput
The main class for interfacing with the VladNput framework.
VladError
- Class in
org.vladnput
Class representing a single validation error.
VladError(String, String, String, String, String, Integer, boolean)
- Constructor for class org.vladnput.
VladError
Constructs a new error.
VladErrors
- Class in
org.vladnput
A list of
VladError
objects.
VladErrors()
- Constructor for class org.vladnput.
VladErrors
VladLogger
- Class in
org.vladnput
This class logs all requests and request parameters that are in violation of the security policy defined by a Vlad configuration.
VladLogger()
- Constructor for class org.vladnput.
VladLogger
VladMessages
- Class in
org.vladnput
Class that defines valid message names and stores the messages for an individual type, parameter, parameter match, or message defaults.
VladMessages(Map)
- Constructor for class org.vladnput.
VladMessages
Extracts all the arguments from
args
for which
isValidMessageName()
returns
true
and removes them from
args
.
VladMessageVars
- Class in
org.vladnput
Class that acts as a registry of all the variable names that may appear in a message.
VladMessageVars(String)
- Constructor for class org.vladnput.
VladMessageVars
VladType
- Class in
org.vladnput.types
The base class for all type validators.
VladType(Map<String, Object>)
- Constructor for class org.vladnput.types.
VladType
Constructs VladType from
args
, removing any arguments related to
VladMessages
or that are recognized by this class (e.g.
VladUtil
- Class in
org.vladnput
Various static utility routines.
A
B
C
D
E
F
G
H
I
L
M
N
O
P
R
S
T
U
V
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2009 Patrick Higgins. All Rights Reserved.