Skip to content

Commit 3cb7cff

Browse files
author
kevin.w.wall
committed
Add check to see if lenient dates accepted in support of Google Issue ESAPI#73.
1 parent d7101c6 commit 3cb7cff

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/org/owasp/esapi/reference/DefaultSecurityConfiguration.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public static SecurityConfiguration getInstance() {
147147
public static final String LOG_APPLICATION_NAME = "Logger.LogApplicationName";
148148
public static final String LOG_SERVER_IP = "Logger.LogServerIP";
149149
public static final String VALIDATION_PROPERTIES = "Validator.ConfigurationFile";
150+
public static final String ACCEPT_LENIENT_DATES = "Validator.AcceptLenientDates";
150151

151152

152153

@@ -1131,6 +1132,13 @@ public List<String> getAdditionalAllowedCipherModes()
11311132
List<String> empty = new ArrayList<String>(); // Default is empty list
11321133
return getESAPIProperty(ADDITIONAL_ALLOWED_CIPHER_MODES, empty);
11331134
}
1135+
1136+
/**
1137+
* {@inheritDoc}
1138+
*/
1139+
public boolean getLenientDatesAccepted() {
1140+
return getESAPIProperty( ACCEPT_LENIENT_DATES, false);
1141+
}
11341142

11351143
protected String getESAPIProperty( String key, String def ) {
11361144
String value = properties.getProperty(key);

0 commit comments

Comments
 (0)