Addendum for HADOOP-14146. Use commons Base64 instead of jdk8 Base64.

(cherry picked from commit 0719345909)
This commit is contained in:
Kihwal Lee 2017-06-23 13:28:16 -05:00
parent fa695817e5
commit bdbf737ef3
1 changed files with 2 additions and 2 deletions

View File

@ -23,11 +23,11 @@ import java.io.IOException;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Base64;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.apache.commons.codec.binary.Base64;
import org.apache.directory.server.kerberos.shared.keytab.Keytab; import org.apache.directory.server.kerberos.shared.keytab.Keytab;
import org.apache.directory.server.kerberos.shared.keytab.KeytabEntry; import org.apache.directory.server.kerberos.shared.keytab.KeytabEntry;
import org.apache.directory.shared.kerberos.KerberosTime; import org.apache.directory.shared.kerberos.KerberosTime;
@ -247,6 +247,6 @@ public class TestKerberosUtil {
private static String getPrincipal(String token) { private static String getPrincipal(String token) {
return KerberosUtil.getTokenServerName( return KerberosUtil.getTokenServerName(
Base64.getDecoder().decode(token)); Base64.decodeBase64(token));
} }
} }