Skip to content

Commit

Permalink
[NOISSUE]
Browse files Browse the repository at this point in the history
allow default for expiration warning threshold
  • Loading branch information
jj committed Aug 29, 2018
1 parent 2114272 commit 540a863
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public static void updateOpenSamlMetadataResolverFromReloadableMetadataResolverA
ParserPool parserPool) {
AbstractReloadingMetadataResolver reloadingMetadataResolver = (AbstractReloadingMetadataResolver) metadataResolver;

reloadingMetadataResolver.setExpirationWarningThreshold(toMillis(attributes.getExpirationWarningThreshold()));
if (attributes.getExpirationWarningThreshold() != null) {
reloadingMetadataResolver.setExpirationWarningThreshold(toMillis(attributes.getExpirationWarningThreshold()));
}
if (attributes.getMaxRefreshDelay() != null) {
reloadingMetadataResolver.setMaxRefreshDelay(toMillis(attributes.getMaxRefreshDelay()));
}
Expand Down

0 comments on commit 540a863

Please sign in to comment.