diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2019-11-06 12:41:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-11-06 12:41:48 +0000 |
commit | b6b04b1257efae746072c685238354b7dfc05aa4 (patch) | |
tree | e6b3c60f94b4bd4a45cd7d7fb7c693d2082de81b /auth | |
parent | 172ff01306aeb1ca6aeaece0ac437dd97c4939ae (diff) | |
parent | 2a4f3895fdbb015f874e7628481f5c78a294fbd8 (diff) |
Merge "OAUTHService.java-sonar fix"
Diffstat (limited to 'auth')
-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(); |