public void setStreamingModeName(String streamingModeName) {
        if (!isModeStreamingCompatible(streamingModeName)) {
            String msg = "mode [" + streamingModeName + "] is not a valid operation mode for block cipher streaming.";
            throw new IllegalArgumentException(msg);
        }
        this.streamingModeName = streamingModeName;
        //clear out the streaming transformation string so the next invocation will rebuild it with the new mode:
        this.streamingTransformationString = null;
    }
Sets the transformation string mode name to be used for streaming operations only.  The default value is
{@link OperationMode#CBC CBC} for reasons described in the class-level JavaDoc in the {@code Streaming} section.

@param streamingModeName transformation string mode name to be used for streaming operations only
src/main/java/org/apache/shiro/crypto/cipher/DefaultBlockCipherService.java