package p138.p329.p362.p363;

import com.hierynomus.protocol.transport.TransportException;
import java.lang.reflect.Method;
import java.security.Key;
import org.ietf.jgss.GSSContext;

/* JADX INFO: renamed from: ދ.ށ.މ.ނ.ށ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C6345 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final Method f17717;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static Object f17718;

    static {
        Class<?> cls;
        Class<?> cls2;
        try {
            cls = Class.forName("com.sun.security.jgss.ExtendedGSSContext", false, C6349.class.getClassLoader());
            cls2 = Class.forName("com.sun.security.jgss.InquireType");
        } catch (ClassNotFoundException e) {
            try {
                cls = Class.forName("com.ibm.security.jgss.ExtendedGSSContext", false, C6349.class.getClassLoader());
                cls2 = Class.forName("com.ibm.security.jgss.InquireType");
            } catch (ClassNotFoundException e2) {
                IllegalStateException illegalStateException = new IllegalStateException("The code is running in an unknown java vm");
                illegalStateException.addSuppressed(e);
                illegalStateException.addSuppressed(e2);
                throw illegalStateException;
            }
        }
        f17718 = Enum.valueOf(cls2.asSubclass(Enum.class), "KRB5_GET_SESSION_KEY");
        try {
            f17717 = cls.getDeclaredMethod("inquireSecContext", cls2);
        } catch (NoSuchMethodException e3) {
            throw new IllegalStateException(e3);
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static Key m9564(GSSContext gSSContext) throws TransportException {
        try {
            return (Key) f17717.invoke(gSSContext, f17718);
        } catch (Throwable th) {
            throw new TransportException(th);
        }
    }
}
