HADOOP-17644. Add back the exceptions removed by HADOOP-17432 for compatibility. Contributed by Quan Li.
This commit is contained in:
parent
1326cad66a
commit
2a95ba29bb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue