From 1c50a86661a3c815f7d8649c406df61ea102a080 Mon Sep 17 00:00:00 2001 From: Gamal Shaban Date: Tue, 28 May 2013 22:57:48 +0200 Subject: [PATCH] SEC-2173: Override toString method in SystemWideSaltSource Now prints the saltSource string instead of the object memory signature. --- .../authentication/dao/SystemWideSaltSource.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/main/java/org/springframework/security/authentication/dao/SystemWideSaltSource.java b/core/src/main/java/org/springframework/security/authentication/dao/SystemWideSaltSource.java index 417ca97f06..53b4f99085 100644 --- a/core/src/main/java/org/springframework/security/authentication/dao/SystemWideSaltSource.java +++ b/core/src/main/java/org/springframework/security/authentication/dao/SystemWideSaltSource.java @@ -52,4 +52,13 @@ public class SystemWideSaltSource implements SaltSource, InitializingBean { public void setSystemWideSalt(String systemWideSalt) { this.systemWideSalt = systemWideSalt; } + + /** + * @since 3.2.3 + * @return + */ + @Override + public String toString() { + return systemWideSalt; + } }