public class RedundantFileExtSecurityAdapter extends WhiteBlackExpressionSecurityAdapter
Modifier and Type | Field and Description |
---|---|
static String |
BLACK_URL_REGEX_PROP |
static String |
WHITE_URL_REGEX_PROP |
blackRegExPattern, whiteRegExPattern
REGEX_PROP_FILE
Constructor and Description |
---|
RedundantFileExtSecurityAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
processInvalidQuery(Data<String> input) |
protected void |
processNameValue(String name,
String value)
Used by
WhiteBlackExpressionSecurityAdapter.processParams(Data)
In the case of File matching, if the value is not a ref to a file, ignore else Match it against the RegEx |
void |
validate(Data<String> input)
Check if the input is safe or not
When used in a chained or a SecurityContext with other SecurityAdapter s then the Adapters throwing
a OperationNotSupportedException will be ignored. |
getBlackRegExPattern, getWhiteRegExPattern, processParams, sanitize, setBlackRegExPattern, setWhiteRegExPattern, validateAgainstBlackRegEx, validateAgainstWhiteRegEx
public static final String BLACK_URL_REGEX_PROP
public static final String WHITE_URL_REGEX_PROP
public RedundantFileExtSecurityAdapter() throws IOException
IOException
public void validate(Data<String> input) throws SecurityException, IOException
SecurityAdapter
SecurityContext
with other SecurityAdapter
s then the Adapters throwing
a OperationNotSupportedException
will be ignored.validate
in interface SecurityAdapter<String>
validate
in class WhiteBlackExpressionSecurityAdapter
input
- as Data
SecurityException
- is its is not safe. This is to provide additional details about the failure that te return param cannot.IOException
- for any type of setup, reading, infra related issue with files/configsprotected void processNameValue(String name, String value) throws SecurityException, IOException
WhiteBlackExpressionSecurityAdapter.processParams(Data)
processNameValue
in class WhiteBlackExpressionSecurityAdapter
name
- value
- SecurityException
IOException
protected void processInvalidQuery(Data<String> input) throws SecurityException, IOException
processInvalidQuery
in class WhiteBlackExpressionSecurityAdapter
SecurityException
IOException
Copyright © 2018. All rights reserved.