فهرست منبع

SEC-2173: Override toString method in SystemWideSaltSource

Now prints the saltSource string instead of the object memory signature.
Gamal Shaban 12 سال پیش
والد
کامیت
1c50a86661
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      core/src/main/java/org/springframework/security/authentication/dao/SystemWideSaltSource.java

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