From 399da1ecad6bfd8259e1c9061fb3ca64fb3388e3 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 25 Oct 2017 12:56:03 -0500 Subject: [PATCH] SecurityContextImpl constructor Fixes gh-4712 --- .../security/core/context/SecurityContextImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/main/java/org/springframework/security/core/context/SecurityContextImpl.java b/core/src/main/java/org/springframework/security/core/context/SecurityContextImpl.java index e2880906c5..8376db58b3 100644 --- a/core/src/main/java/org/springframework/security/core/context/SecurityContextImpl.java +++ b/core/src/main/java/org/springframework/security/core/context/SecurityContextImpl.java @@ -35,6 +35,12 @@ public class SecurityContextImpl implements SecurityContext { private Authentication authentication; + public SecurityContextImpl() {} + + public SecurityContextImpl(Authentication authentication) { + this.authentication = authentication; + } + // ~ Methods // ========================================================================================================