public SecretKey key() {
        return key;
    }
Get the cryptographic key to use for request validation.

@return the cryptographic key; may not be null
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/SessionKey.java