package io.netty.handler.codec.socks;

/* JADX INFO: loaded from: classes.dex */
public enum SocksAuthScheme {
    NO_AUTH((byte) 0),
    AUTH_GSSAPI((byte) 1),
    AUTH_PASSWORD((byte) 2),
    UNKNOWN((byte) -1);


    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final byte f5805b;

    SocksAuthScheme(byte b2) {
        this.f5805b = b2;
    }

    @Deprecated
    public static SocksAuthScheme fromByte(byte b2) {
        return valueOf(b2);
    }

    public static SocksAuthScheme valueOf(byte b2) {
        SocksAuthScheme[] socksAuthSchemeArrValues = values();
        for (int i2 = 0; i2 < 4; i2++) {
            SocksAuthScheme socksAuthScheme = socksAuthSchemeArrValues[i2];
            if (socksAuthScheme.f5805b == b2) {
                return socksAuthScheme;
            }
        }
        return UNKNOWN;
    }

    public byte byteValue() {
        return this.f5805b;
    }
}
