@@ -283,7 +283,7 @@ public MantaObjectInputStream httpRequestAsInputStream(final HttpUriRequest requ
283283
284284 /* Errors when we attempt to do an HTTP range request when authentication
285285 * mode is set to Mandatory because HTTP range requests will only work
286- * with authentication disabled. When you do a range request, it gets
286+ * with authentication in verification disabled mode . When you do a range request, it gets
287287 * arbitrary bytes from the ciphertext of the source object which means
288288 * that you will not be able to verify the ciphertext using the HMAC
289289 * because you don't have all of the bytes available. */
@@ -380,9 +380,9 @@ public MantaObjectInputStream httpRequestAsInputStream(final HttpUriRequest requ
380380 secretKey , false , initialSkipBytes , plaintextRangeLength , unboundedEnd );
381381 } else {
382382 /* We skip authentication on the ciphertext only when it is explicitly
383- * disabled. For the Mandatory and Optional modes, it is enabled. */
383+ * in verification disabled mode . For the Mandatory and Optional modes, it is enabled. */
384384 final boolean authenticateCiphertext =
385- !encryptionAuthenticationMode .equals (EncryptionAuthenticationMode .Disabled );
385+ !encryptionAuthenticationMode .equals (EncryptionAuthenticationMode .VerificationDisabled );
386386 return new MantaEncryptedObjectInputStream (rawStream , this .cipherDetails ,
387387 secretKey , authenticateCiphertext );
388388 }
0 commit comments