@Override
    void setChannelIdEnabled(boolean enabled) {
        synchronized (ssl) {
            if (getUseClientMode()) {
                throw new IllegalStateException("Not allowed in client mode");
            }
            if (isHandshakeStarted()) {
                throw new IllegalStateException(
                        "Could not enable/disable Channel ID after the initial handshake has begun.");
            }
            sslParameters.channelIdEnabled = enabled;
        }
    }
Enables/disables TLS Channel ID for this server engine.

<p>This method needs to be invoked before the handshake starts.

@throws IllegalStateException if this is a client engine or if the handshake has already
        started.
common/src/main/java/org/conscrypt/ConscryptEngine.java