Bläddra i källkod

SEC-2173: Override toString method in SystemWideSaltSource

Now prints the saltSource string instead of the object memory signature.
Gamal Shaban 12 år sedan
förälder
incheckning
1c50a86661

+ 9 - 0
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;
+    }
 }