Home / Type/ Auth Type — netty Architecture

Auth Type — netty Architecture

Architecture documentation for the Auth type/interface in MqttReasonCodes.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  51ce9ebe_782d_5d10_916d_743c02ca161d["Auth"]
  c504338c_2902_e532_6aaa_70ad4dab253e["MqttReasonCodes.java"]
  51ce9ebe_782d_5d10_916d_743c02ca161d -->|defined in| c504338c_2902_e532_6aaa_70ad4dab253e
  style 51ce9ebe_782d_5d10_916d_743c02ca161d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java lines 109–146

    public enum Auth {
        SUCCESS((byte) 0x00), //sent by: Server
        CONTINUE_AUTHENTICATION((byte) 0x18), //sent by: Client or Server
        REAUTHENTICATE((byte) 0x19); //sent by: Client

        private static final Auth[] VALUES;

        static {
            Auth[] values = values();
            VALUES = new Auth[26];
            for (Auth code : values) {
                final int unsignedByte = code.byteValue & 0xFF;
                // Suppress a warning about out of bounds access since the enum contains only correct values
                VALUES[unsignedByte] = code;    //  [java/index-out-of-bounds]
            }
        }

        private final byte byteValue;

        Auth(byte byteValue) {
            this.byteValue = byteValue;
        }

        /**
         * @return the value number corresponding to the constant.
         * */
        public byte byteValue() {
            return byteValue;
        }

        /**
         * @param b the number to decode.
         * @return the enum value corresponding to the number.
         * */
        public static Auth valueOf(byte b) {
            return valueOfHelper(b, VALUES);
        }
    }

Frequently Asked Questions

What is the Auth type?
Auth is a type/interface in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java.
Where is Auth defined?
Auth is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttReasonCodes.java at line 109.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free