diff options
author | sunil unnava <sunil.unnava@att.com> | 2018-09-12 16:08:08 -0400 |
---|---|---|
committer | sunil unnava <sunil.unnava@att.com> | 2018-09-12 16:08:26 -0400 |
commit | 3feb5521d49d3ca29870c168064897f28b72b444 (patch) | |
tree | 8494a1c27f268538799640f4039381445206bc10 /src/main/java | |
parent | 28ec80929182557165c4c37158036ee49aa71f29 (diff) |
update the topic name pattern
Issue-ID: DMAAP-772
Change-Id: I485c54ce6375ea0ab1f069f130351c5a3ef05615
Signed-off-by: sunil unnava <sunil.unnava@att.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java b/src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java index ed0893d..e4e24cd 100644 --- a/src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java +++ b/src/main/java/com/att/dmf/mr/security/DMaaPAAFAuthenticatorImpl.java @@ -56,7 +56,7 @@ public class DMaaPAAFAuthenticatorImpl implements DMaaPAAFAuthenticator { String permission = ""; String nameSpace =""; - if(topicName.contains(".") && topicName.contains("com.att")) { + if(topicName.contains(".") && topicName.contains("org.onap")) { nameSpace = topicName.substring(0,topicName.lastIndexOf(".")); } @@ -64,13 +64,13 @@ public class DMaaPAAFAuthenticatorImpl implements DMaaPAAFAuthenticator { nameSpace = null; nameSpace= com.att.ajsc.filemonitor.AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,"defaultNSforUEB"); - if(null==nameSpace)nameSpace="com.att.dmaap.mr.ueb"; + if(null==nameSpace)nameSpace="org.onap.dmaap.mr"; } - permission = nameSpace+".mr.topic|:topic."+topicName+"|"+action; + permission = nameSpace+".topic|:topic."+topicName+"|"+action; return permission; } |