From 87d6b8deddc03e8ad6e87e3ddf5dae9631dbcd25 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Mon, 27 Aug 2007 23:22:48 +0000 Subject: [PATCH] SEC-412: Fix. Added extra constructor to UsernameNotFoundException allow use of extraInformation property of parent class. --- .../userdetails/UsernameNotFoundException.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/acegisecurity/userdetails/UsernameNotFoundException.java b/core/src/main/java/org/acegisecurity/userdetails/UsernameNotFoundException.java index c5db5ce159..c40a4c9cd7 100644 --- a/core/src/main/java/org/acegisecurity/userdetails/UsernameNotFoundException.java +++ b/core/src/main/java/org/acegisecurity/userdetails/UsernameNotFoundException.java @@ -27,7 +27,7 @@ import org.acegisecurity.BadCredentialsException; public class UsernameNotFoundException extends BadCredentialsException { //~ Constructors =================================================================================================== -/** + /** * Constructs a UsernameNotFoundException with the specified * message. * @@ -37,7 +37,18 @@ public class UsernameNotFoundException extends BadCredentialsException { super(msg); } -/** + /** + * Constructs a UsernameNotFoundException, making use of the extraInformation + * property of the superclass. + * + * @param msg the detail message + * @param extraInformation additional information such as the username. + */ + public UsernameNotFoundException(String msg, Object extraInformation) { + super(msg, extraInformation); + } + + /** * Constructs a UsernameNotFoundException with the specified * message and root cause. *