mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-29 23:32:14 +00:00
Tidying.
This commit is contained in:
parent
4984024314
commit
6ad176ce1a
@ -37,8 +37,7 @@ public abstract class AbstractAuthenticationManager implements AuthenticationMan
|
|||||||
*
|
*
|
||||||
* @throws AuthenticationException if authentication fails
|
* @throws AuthenticationException if authentication fails
|
||||||
*/
|
*/
|
||||||
public final Authentication authenticate(Authentication authRequest)
|
public final Authentication authenticate(Authentication authRequest) throws AuthenticationException {
|
||||||
throws AuthenticationException {
|
|
||||||
try {
|
try {
|
||||||
return doAuthentication(authRequest);
|
return doAuthentication(authRequest);
|
||||||
} catch (AuthenticationException e) {
|
} catch (AuthenticationException e) {
|
||||||
@ -51,7 +50,7 @@ public abstract class AbstractAuthenticationManager implements AuthenticationMan
|
|||||||
* Concrete implementations of this class override this method to provide the authentication service.
|
* Concrete implementations of this class override this method to provide the authentication service.
|
||||||
* <p>
|
* <p>
|
||||||
* The contract for this method is documented in the
|
* The contract for this method is documented in the
|
||||||
* {@link AuthenticationManager#authenticate(org.springframework.security.Authentication)}.
|
* {@link AuthenticationManager#authenticate(Authentication)}.
|
||||||
*
|
*
|
||||||
* @param authentication the authentication request object
|
* @param authentication the authentication request object
|
||||||
*
|
*
|
||||||
@ -59,6 +58,5 @@ public abstract class AbstractAuthenticationManager implements AuthenticationMan
|
|||||||
*
|
*
|
||||||
* @throws AuthenticationException if authentication fails
|
* @throws AuthenticationException if authentication fails
|
||||||
*/
|
*/
|
||||||
protected abstract Authentication doAuthentication(Authentication authentication)
|
protected abstract Authentication doAuthentication(Authentication authentication) throws AuthenticationException;
|
||||||
throws AuthenticationException;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user