Restore Removed Throws Clauses
In a recent clean-up, certain exceptions were removed from various throws clauses. This PR re-introduces throws clauses that are important for one of the following reasons: 1. It's a method on a public interface 2. It's a method clearly designed for inheritance, for example, a method stub, an abstract method, or indicated as such in the docs. Fixes gh-7541
This commit is contained in:
+1
-1
@@ -228,7 +228,7 @@ public abstract class AbstractUserDetailsAuthenticationProvider implements
|
||||
return result;
|
||||
}
|
||||
|
||||
protected void doAfterPropertiesSet() {
|
||||
protected void doAfterPropertiesSet() throws Exception {
|
||||
}
|
||||
|
||||
public UserCache getUserCache() {
|
||||
|
||||
+6
-3
@@ -16,9 +16,11 @@
|
||||
|
||||
package org.springframework.security.authentication.jaas;
|
||||
|
||||
import org.springframework.security.core.Authentication;
|
||||
|
||||
import java.io.IOException;
|
||||
import javax.security.auth.callback.Callback;
|
||||
import javax.security.auth.callback.UnsupportedCallbackException;
|
||||
|
||||
import org.springframework.security.core.Authentication;
|
||||
|
||||
/**
|
||||
* The JaasAuthenticationCallbackHandler is similar to the
|
||||
@@ -58,5 +60,6 @@ public interface JaasAuthenticationCallbackHandler {
|
||||
* @param auth The Authentication object currently being authenticated.
|
||||
*
|
||||
*/
|
||||
void handle(Callback callback, Authentication auth);
|
||||
void handle(Callback callback, Authentication auth) throws IOException,
|
||||
UnsupportedCallbackException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user