Support Serialization in Exceptions
Issue gh-16276
This commit is contained in:
+1
@@ -40,6 +40,7 @@ import org.springframework.security.core.AuthenticationException;
|
||||
*
|
||||
* @author Rob Winch
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public final class ActiveDirectoryAuthenticationException extends AuthenticationException {
|
||||
|
||||
private final String dataCode;
|
||||
|
||||
+5
@@ -16,6 +16,8 @@
|
||||
|
||||
package org.springframework.security.ldap.ppolicy;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* Generic exception raised by the ppolicy package.
|
||||
* <p>
|
||||
@@ -27,6 +29,9 @@ package org.springframework.security.ldap.ppolicy;
|
||||
*/
|
||||
public class PasswordPolicyException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 2586535034047453106L;
|
||||
|
||||
private final PasswordPolicyErrorStatus status;
|
||||
|
||||
public PasswordPolicyException(PasswordPolicyErrorStatus status) {
|
||||
|
||||
Reference in New Issue
Block a user