public abstract class SecurityCheckConfigurationBase extends java.lang.Object implements SecurityCheckConfiguration
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
errors |
protected java.util.Map |
info |
protected java.util.Map |
warnings |
Constructor and Description |
---|
SecurityCheckConfigurationBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addMessage(java.util.Map map,
java.lang.String property,
java.lang.String msg) |
java.util.Map |
getErrors()
Get validation errors as a map with property name as key and error message as value
|
java.util.Map |
getInfo()
Get validation warnings as a map with property name as key and warning message as value
|
protected int |
getIntProperty(java.lang.String name,
java.util.Properties properties,
java.lang.Integer defaultValue)
Find property with the given name in Properties and convert it to int.
|
protected java.lang.String |
getStringProperty(java.lang.String name,
java.util.Properties properties,
java.lang.String defaultValue)
Find property with the given name in Properties.
|
java.util.Map |
getWarnings()
Get validation warnings as a map with property name as key and warning message as value
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateExpirationLimit
protected java.util.Map errors
protected java.util.Map warnings
protected java.util.Map info
public java.util.Map getErrors()
SecurityCheckConfiguration
getErrors
in interface SecurityCheckConfiguration
public java.util.Map getWarnings()
SecurityCheckConfiguration
getWarnings
in interface SecurityCheckConfiguration
public java.util.Map getInfo()
SecurityCheckConfiguration
getInfo
in interface SecurityCheckConfiguration
protected java.lang.String getStringProperty(java.lang.String name, java.util.Properties properties, java.lang.String defaultValue)
name
- the property nameproperties
- the properties to get from, modified by the methoddefaultValue
- the value to return if the property does not exist, null means the property is mandatoryprotected int getIntProperty(java.lang.String name, java.util.Properties properties, java.lang.Integer defaultValue)
name
- the property nameproperties
- the properties to get from, modified by the methoddefaultValue
- the value to return if the property does not exist, null means the property is mandatoryprotected void addMessage(java.util.Map map, java.lang.String property, java.lang.String msg)
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.