You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2018/10/30 09:11:11 UTC

svn commit: r1845205 - /tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java

Author: markt
Date: Tue Oct 30 09:11:11 2018
New Revision: 1845205

URL: http://svn.apache.org/viewvc?rev=1845205&view=rev
Log:
Fix javadoc warnings in IDE with more specific exception info

Modified:
    tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java

Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java?rev=1845205&r1=1845204&r2=1845205&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/EncryptInterceptor.java Tue Oct 30 09:11:11 2018
@@ -335,7 +335,10 @@ public class EncryptInterceptor extends
      *
      * @return The encrypted IV block in [0] and the encrypted data in [1].
      *
-     * @throws GeneralSecurityException If there is a problem performing the encryption.
+     * @throws IllegalBlockSizeException If the input data is not a multiple of
+     *             the block size and no padding has been requested (for block
+     *             ciphers) or if the input data cannot be encrypted
+     * @throws BadPaddingException Declared but should not occur during encryption
      */
     private byte[][] encrypt(byte[] bytes) throws IllegalBlockSizeException, BadPaddingException {
         Cipher cipher = getEncryptionCipher();
@@ -357,7 +360,10 @@ public class EncryptInterceptor extends
      *
      * @return The decrypted data.
      *
-     * @throws GeneralSecurityException If there is a problem performing the decryption.
+     * @throws IllegalBlockSizeException If the input data cannot be encrypted
+     * @throws BadPaddingException If the decrypted data does not include the
+     *             expected number of padding bytes
+     *
      */
     private byte[] decrypt(byte[] bytes) throws IllegalBlockSizeException, BadPaddingException {
         return getDecryptionCipher().doFinal(bytes);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org