/// <exception cref="System.IO.IOException"/> public virtual void TestReadCorrectlyRestrictedWithSecurity() { SecureIOUtils.OpenForRead(testFilePathIs, realOwner, realGroup).Close(); SecureIOUtils.OpenFSDataInputStream(testFilePathFadis, realOwner, realGroup).Close (); SecureIOUtils.OpenForRandomRead(testFilePathRaf, "r", realOwner, realGroup).Close (); }
/// <exception cref="System.IO.IOException"/> public virtual void TestReadUnrestricted() { SecureIOUtils.OpenForRead(testFilePathIs, null, null).Close(); SecureIOUtils.OpenFSDataInputStream(testFilePathFadis, null, null).Close(); SecureIOUtils.OpenForRandomRead(testFilePathRaf, "r", null, null).Close(); }