commit | b6b04b1257efae746072c685238354b7dfc05aa4 | [log] [tgz] |
---|---|---|
author | Jonathan Gathman <jonathan.gathman@att.com> | Wed Nov 06 12:41:48 2019 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Wed Nov 06 12:41:48 2019 +0000 |
tree | e6b3c60f94b4bd4a45cd7d7fb7c693d2082de81b | |
parent | 172ff01306aeb1ca6aeaece0ac437dd97c4939ae [diff] | |
parent | 2a4f3895fdbb015f874e7628481f5c78a294fbd8 [diff] |
Merge "OAUTHService.java-sonar fix"
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 4e1dd5b..a13959f 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 @@ 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();