You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2021/05/08 22:33:53 UTC
[hadoop] branch trunk updated: HADOOP-17644. Add back the
exceptions removed by HADOOP-17432 for compatibility. Contributed by Quan
Li.
This is an automated email from the ASF dual-hosted git repository.
ayushsaxena pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 7f93349 HADOOP-17644. Add back the exceptions removed by HADOOP-17432 for compatibility. Contributed by Quan Li.
7f93349 is described below
commit 7f93349ee74da5f35276b7535781714501ab2457
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Sun May 9 03:40:08 2021 +0530
HADOOP-17644. Add back the exceptions removed by HADOOP-17432 for compatibility. Contributed by Quan Li.
---
.../apache/hadoop/security/authentication/util/KerberosUtil.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosUtil.java b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosUtil.java
index 95f0106..fc6f957 100644
--- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosUtil.java
+++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosUtil.java
@@ -79,11 +79,16 @@ public class KerberosUtil {
*
* @return Oid instance
* @param oidName The oid Name
+ * @throws ClassNotFoundException for backward compatibility.
+ * @throws GSSException for backward compatibility.
* @throws NoSuchFieldException if the input is not supported.
+ * @throws IllegalAccessException for backward compatibility.
+ *
*/
@Deprecated
public static Oid getOidInstance(String oidName)
- throws NoSuchFieldException {
+ throws ClassNotFoundException, GSSException, NoSuchFieldException,
+ IllegalAccessException {
switch (oidName) {
case "GSS_SPNEGO_MECH_OID":
return GSS_SPNEGO_MECH_OID;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org