aboutsummaryrefslogtreecommitdiffstats
path: root/common/src
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2020-01-09 05:02:45 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-09 05:02:45 +0000
commit3f7c17acb545c47b64f5c44f9baa048ed4a6982e (patch)
treeab8c07463ed91d780fe7c651064c74401b15cbf3 /common/src
parentb116b0c362600e6252619d5edd1f67da70d66d14 (diff)
parent892c0539e407e37c34e81f4e7ca3fccdbec50f1f (diff)
Merge "configurable aaf user expires"
Diffstat (limited to 'common/src')
-rw-r--r--common/src/main/java/org/onap/so/security/SoCadiFilter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/src/main/java/org/onap/so/security/SoCadiFilter.java b/common/src/main/java/org/onap/so/security/SoCadiFilter.java
index 93700db682..9849db380f 100644
--- a/common/src/main/java/org/onap/so/security/SoCadiFilter.java
+++ b/common/src/main/java/org/onap/so/security/SoCadiFilter.java
@@ -83,6 +83,9 @@ public class SoCadiFilter extends CadiFilter {
@Value("${mso.config.cadi.apiEnforcement:#{null}}")
private String apiEnforcement;
+ @Value("${mso.config.cadi.userExpires:#{null}}")
+ private String userExpires;
+
private void checkIfNullProperty(String key, String value) {
/*
* When value is null, it is not defined in application.yaml set nothing in System properties
@@ -108,6 +111,7 @@ public class SoCadiFilter extends CadiFilter {
checkIfNullProperty(Config.AAF_LOCATE_URL, aafLocateUrl);
checkIfNullProperty(Config.AAF_URL, aafUrl);
checkIfNullProperty(Config.CADI_API_ENFORCEMENT, apiEnforcement);
+ checkIfNullProperty(Config.AAF_USER_EXPIRES, userExpires);
// checkIfNullProperty(AFT_ENVIRONMENT_VAR, aftEnv);
logger.debug(" *** init Filter Config *** ");
super.init(filterConfig);