maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r439015 - /maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/AcegiPasswordEncoder.java
Date Thu, 31 Aug 2006 19:05:53 GMT
Author: carlos
Date: Thu Aug 31 12:05:52 2006
New Revision: 439015

URL: http://svn.apache.org/viewvc?rev=439015&view=rev
Log:
Added systemSalt
Submitted by: Joakime Erdfelt

Modified:
    maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/AcegiPasswordEncoder.java

Modified: maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/AcegiPasswordEncoder.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/AcegiPasswordEncoder.java?rev=439015&r1=439014&r2=439015&view=diff
==============================================================================
--- maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/AcegiPasswordEncoder.java
(original)
+++ maven/shared/trunk/maven-user/maven-user-acegi/src/main/java/org/apache/maven/user/acegi/AcegiPasswordEncoder.java
Thu Aug 31 12:05:52 2006
@@ -28,6 +28,7 @@
 public class AcegiPasswordEncoder
     implements PasswordEncoder
 {
+    private Object systemSalt;
 
     private org.acegisecurity.providers.encoding.PasswordEncoder encoder;
 
@@ -55,5 +56,20 @@
     public boolean isPasswordValid( String encPass, String rawPass, Object salt )
     {
         return isPasswordValid( encPass, rawPass, salt );
+    }
+
+    public String encodePassword( String rawPass )
+    {
+        return encodePassword( rawPass, systemSalt );
+    }
+
+    public boolean isPasswordValid( String encPass, String rawPass )
+    {
+        return isPasswordValid( encPass, rawPass, systemSalt );
+    }
+
+    public void setSystemSalt( Object salt )
+    {
+        this.systemSalt = salt;
     }
 }



Mime
View raw message