public boolean setSecretKey(String secretKey) {
        this.resetErrorStatus();
        
        try {
            if (this.checkString(secretKey, 1, 64)) {
                this.secretKey = secretKey;
            }
            else {
                throw new ChannelException("invaid secretKey ( "+ secretKey + " ), which must be a 1 - 64 length string", CHANNEL_SDK_INIT_FAIL);
            }
        } 
        catch (ChannelException ex) {
            this.channelExceptionHandler(ex);
            return false;
        }
        return true;
    }