Addendum for HADOOP-14146. Use commons Base64 instead of jdk8 Base64.
(cherry picked from commit 0719345909
)
This commit is contained in:
parent
fa695817e5
commit
bdbf737ef3
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue