public static AddressType fromValue(final int method) {
        switch (method) {
            default:
            case 0:
                return UNASSIGNED_ADDRESS;
            case 1:
                return UNICAST_ADDRESS;
            case 2:
                return GROUP_ADDRESS;
            case 3:
                return ALL_PROXIES;
            case 4:
                return ALL_FRIENDS;
            case 5:
                return ALL_RELAYS;
            case 6:
                return ALL_NODES;
            case 7:
                return VIRTUAL_ADDRESS;
        }
    }
Returns the oob method used for authentication

@param method auth method used
mesh/src/main/java/no/nordicsemi/android/mesh/utils/AddressType.java