1
0
mirror of synced 2026-08-31 22:46:02 +00:00

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:
Josh Cummings
2019-10-29 13:08:15 -06:00
parent a4430aa21b
commit 5f17032ffd
13 changed files with 28 additions and 19 deletions
@@ -228,7 +228,7 @@ public abstract class AbstractUserDetailsAuthenticationProvider implements
return result;
}
protected void doAfterPropertiesSet() {
protected void doAfterPropertiesSet() throws Exception {
}
public UserCache getUserCache() {
@@ -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;
}