hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject [47/57] [abbrv] hive git commit: HIVE-11052 : Unify HiveSessionBase#getusername method (Shinchi Yamashita via Ashutosh Chauhan)
Date Tue, 30 Jun 2015 01:21:40 GMT
HIVE-11052 : Unify HiveSessionBase#getusername method (Shinchi Yamashita via Ashutosh Chauhan)

Signed-off-by: Ashutosh Chauhan <hashutosh@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/da040ba0
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/da040ba0
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/da040ba0

Branch: refs/heads/llap
Commit: da040ba059db9fd60b9e77094792c87f7073c8e5
Parents: 8b0f753
Author: Shinichi Yamashita <yamashitasni@oss.nttdata.co.jp>
Authored: Thu Jun 18 19:59:00 2015 -0700
Committer: Ashutosh Chauhan <hashutosh@apache.org>
Committed: Sat Jun 27 15:38:57 2015 -0700

----------------------------------------------------------------------
 .../apache/hive/service/cli/session/HiveSessionBase.java |  2 --
 .../apache/hive/service/cli/session/HiveSessionImpl.java | 11 +++--------
 2 files changed, 3 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/da040ba0/service/src/java/org/apache/hive/service/cli/session/HiveSessionBase.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/session/HiveSessionBase.java b/service/src/java/org/apache/hive/service/cli/session/HiveSessionBase.java
index 9b04d67..449d4c7 100644
--- a/service/src/java/org/apache/hive/service/cli/session/HiveSessionBase.java
+++ b/service/src/java/org/apache/hive/service/cli/session/HiveSessionBase.java
@@ -73,8 +73,6 @@ public interface HiveSessionBase {
 
   SessionHandle getSessionHandle();
 
-  String getUsername();
-
   String getPassword();
 
   HiveConf getHiveConf();

http://git-wip-us.apache.org/repos/asf/hive/blob/da040ba0/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
----------------------------------------------------------------------
diff --git a/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java b/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
index a2fae69..b6ee966 100644
--- a/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
+++ b/service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
@@ -319,11 +319,6 @@ public class HiveSessionImpl implements HiveSession {
   }
 
   @Override
-  public String getUsername() {
-    return username;
-  }
-
-  @Override
   public String getPassword() {
     return password;
   }
@@ -727,14 +722,14 @@ public class HiveSessionImpl implements HiveSession {
   @Override
   public String getDelegationToken(HiveAuthFactory authFactory, String owner, String renewer)
       throws HiveSQLException {
-    HiveAuthFactory.verifyProxyAccess(getUsername(), owner, getIpAddress(), getHiveConf());
+    HiveAuthFactory.verifyProxyAccess(getUserName(), owner, getIpAddress(), getHiveConf());
     return authFactory.getDelegationToken(owner, renewer);
   }
 
   @Override
   public void cancelDelegationToken(HiveAuthFactory authFactory, String tokenStr)
       throws HiveSQLException {
-    HiveAuthFactory.verifyProxyAccess(getUsername(), getUserFromToken(authFactory, tokenStr),
+    HiveAuthFactory.verifyProxyAccess(getUserName(), getUserFromToken(authFactory, tokenStr),
         getIpAddress(), getHiveConf());
     authFactory.cancelDelegationToken(tokenStr);
   }
@@ -742,7 +737,7 @@ public class HiveSessionImpl implements HiveSession {
   @Override
   public void renewDelegationToken(HiveAuthFactory authFactory, String tokenStr)
       throws HiveSQLException {
-    HiveAuthFactory.verifyProxyAccess(getUsername(), getUserFromToken(authFactory, tokenStr),
+    HiveAuthFactory.verifyProxyAccess(getUserName(), getUserFromToken(authFactory, tokenStr),
         getIpAddress(), getHiveConf());
     authFactory.renewDelegationToken(tokenStr);
   }


Mime
View raw message