This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit 86fd3681fada3fee32fecc233813a46ff4c87730
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jun 16 07:56:35 2024 -0400

    Remove InvalidKeySpecException from
    AuthenticatingIMAPClient.authenticate(AUTH_METHOD, String, String) never
    throws, it's not thrown
---
 src/changes/changes.xml                                               | 1 +
 .../java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java    | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 2ff2a224..75a6967f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -67,6 +67,7 @@ The <action> type attribute can be add,update,fix,remove.
     <release version="3.11.2" date="YYYY-MM-DD" description="This is a feature 
and maintenance release. Java 8 or later is required.">
       <!-- FIX -->
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Remove 
InvalidKeySpecException from AuthenticatingIMAPClient.auth(AUTH_METHOD, String, 
String) never throws, it's not thrown.</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Remove 
InvalidKeySpecException from AuthenticatingIMAPClient.authenticate(AUTH_METHOD, 
String, String) never throws, it's not thrown.</action> 
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Remove 
InvalidKeySpecException from ExtendedPOP3Client.auth(AUTH_METHOD, String, 
String) never throws, it's not thrown.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Remove 
InvalidKeySpecException from 
org.apache.commons.net.smtp.AuthenticatingSMTPClient.auth(AUTH_METHOD, String, 
String) never throws, it's not thrown.</action>
       <!-- ADD -->
diff --git 
a/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java 
b/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java
index fa6113d3..05e88570 100644
--- a/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java
+++ b/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java
@@ -20,7 +20,6 @@ package org.apache.commons.net.imap;
 import java.io.IOException;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
-import java.security.spec.InvalidKeySpecException;
 import java.util.Base64;
 
 import javax.crypto.Mac;
@@ -220,10 +219,9 @@ public class AuthenticatingIMAPClient extends IMAPSClient {
      * @throws IOException              If an I/O error occurs while either 
sending a command to the server or receiving a reply from the server.
      * @throws NoSuchAlgorithmException If the CRAM hash algorithm cannot be 
instantiated by the Java runtime system.
      * @throws InvalidKeyException      If the CRAM hash algorithm failed to 
use the given password.
-     * @throws InvalidKeySpecException  If the CRAM hash algorithm failed to 
use the given password.
      */
     public boolean authenticate(final AuthenticatingIMAPClient.AUTH_METHOD 
method, final String user, final String password)
-            throws IOException, NoSuchAlgorithmException, InvalidKeyException, 
InvalidKeySpecException {
+            throws IOException, NoSuchAlgorithmException, InvalidKeyException {
         return auth(method, user, password);
     }
 

Reply via email to