The current API will give four restrict options whether document is protected. If we want to test any protection is enabled, we need to write the code to check all four conditions like isEnforecedWithEdit || isEnforncedWithFormfill etc. A utility method is beneficial just to check any protection enforced
I already added utility method. Please refer https://github.com/apache/poi/pull/27 and merge into trunk
Applied as of r1730471, thanks for the patch.