Browse Source

HDFS-9175. Change scope of 'AccessTokenProvider.getAccessToken()' and 'CredentialBasedAccessTokenProvider.getCredential()' abstract methods to public. Contributed by Santhosh Nayak.

(cherry picked from commit c7e03c3a6cf8ccd73a1734a1d19bd8d753b2974c)
cnauroth 9 years ago
parent
commit
7273ef0590

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/AccessTokenProvider.java

@@ -42,7 +42,7 @@ public abstract class AccessTokenProvider implements Configurable {
    * 
    * @return Access token to be added to connection header.
    */
-  abstract String getAccessToken() throws IOException;
+  public abstract String getAccessToken() throws IOException;
 
   /**
    * Return the conf.

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/oauth2/CredentialBasedAccessTokenProvider.java

@@ -75,7 +75,7 @@ public abstract class CredentialBasedAccessTokenProvider
     this.timer = new AccessTokenTimer(timer);
   }
   
-  abstract String getCredential();
+  public abstract String getCredential();
 
   @Override
   public void setConf(Configuration conf) {

+ 4 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -658,6 +658,10 @@ Release 2.8.0 - UNRELEASED
     HDFS-8971. Remove guards when calling LOG.debug() and LOG.trace() in client
     package. (Mingliang Liu via wheat9)
 
+    HDFS-9175. Change scope of 'AccessTokenProvider.getAccessToken()' and
+    'CredentialBasedAccessTokenProvider.getCredential()' abstract methods to
+    public (Santhosh Nayak via cnauroth)
+
   OPTIMIZATIONS
 
     HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than