public class RedundantFileExtSecurityAdapter extends WhiteBlackExpressionSecurityAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
BLACK_URL_REGEX_PROP |
static String |
WHITE_URL_REGEX_PROP |
blackRegExPattern, whiteRegExPatternREGEX_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 SecurityAdapters then the Adapters throwing
a OperationNotSupportedException will be ignored. |
getBlackRegExPattern, getWhiteRegExPattern, processParams, sanitize, setBlackRegExPattern, setWhiteRegExPattern, validateAgainstBlackRegEx, validateAgainstWhiteRegExpublic static final String BLACK_URL_REGEX_PROP
public static final String WHITE_URL_REGEX_PROP
public RedundantFileExtSecurityAdapter()
throws IOException
IOExceptionpublic void validate(Data<String> input) throws SecurityException, IOException
SecurityAdapterSecurityContext with other SecurityAdapters then the Adapters throwing
a OperationNotSupportedException will be ignored.validate in interface SecurityAdapter<String>validate in class WhiteBlackExpressionSecurityAdapterinput - as DataSecurityException - 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 WhiteBlackExpressionSecurityAdaptername - value - SecurityExceptionIOExceptionprotected void processInvalidQuery(Data<String> input) throws SecurityException, IOException
processInvalidQuery in class WhiteBlackExpressionSecurityAdapterSecurityExceptionIOExceptionCopyright © 2018. All rights reserved.