diff options
author | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-10-28 23:21:59 +0530 |
---|---|---|
committer | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-10-28 23:22:12 +0530 |
commit | 2a4f3895fdbb015f874e7628481f5c78a294fbd8 (patch) | |
tree | 2b3b228e514d021c58f9e7830350d9ac5426a1dd /auth/auth-oauth/src/main/java/org | |
parent | bc5f9dec37da59182034c1166a6a9d4150f40847 (diff) |
OAUTHService.java-sonar fix
Issue-ID: AAF-876
Change-Id: I7969e0d84252f9ab737c63bdeda296adf7b0018d
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
Diffstat (limited to 'auth/auth-oauth/src/main/java/org')
-rw-r--r-- | auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java b/auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java index 4e1dd5b9..a13959f1 100644 --- a/auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java +++ b/auth/auth-oauth/src/main/java/org/onap/aaf/auth/oauth/service/OAuthService.java @@ -128,7 +128,8 @@ public class OAuthService { odd.refresh = AAFToken.toToken(UUID.randomUUID()); odd.active = true; long exp; - odd.expires = new Date(exp=(System.currentTimeMillis()+TOK_EXP)); + exp=(System.currentTimeMillis()+TOK_EXP); + odd.expires = new Date(exp); odd.exp_sec = exp/1000; odd.req_ip = trans.ip(); |