From a53262605a83b070e2ef870ae68a9e2d5c119a8b Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Thu, 10 Jul 2014 08:10:41 +0000 Subject: [PATCH] HADOOP-10812. Delegate KeyProviderExtension#toString to underlying KeyProvider. (wang) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1609416 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../org/apache/hadoop/crypto/key/KeyProviderExtension.java | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 76d29bb012..7a725be18b 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -177,6 +177,9 @@ Trunk (Unreleased) HADOOP-10769. Create KeyProvider extension to handle delegation tokens. (Arun Suresh via atm) + HADOOP-10812. Delegate KeyProviderExtension#toString to underlying + KeyProvider. (wang) + BUG FIXES HADOOP-9451. Fault single-layer config if node group topology is enabled. diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderExtension.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderExtension.java index 9e1a185386..ba048b5a3e 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderExtension.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/KeyProviderExtension.java @@ -120,4 +120,9 @@ public KeyVersion rollNewVersion(String name, byte[] material) public void flush() throws IOException { keyProvider.flush(); } + + @Override + public String toString() { + return getClass().getSimpleName() + ": " + keyProvider.toString(); + } }