This commit is contained in:
shimingxy
2019-10-20 23:21:30 +08:00
parent 3bd46aae35
commit d421ac07ca
20 changed files with 753 additions and 120 deletions
@@ -149,7 +149,7 @@ public class Navigations extends JpaBaseDomain implements java.io.Serializable
return "Navigations [name=" + name + ", url=" + url + ", type=" + type
+ ", target=" + target + ", pId=" + pId + ", pName=" + pName
+ ", xPath=" + xPath + ", hasChild=" + hasChild
+ ", sortOrder=" + sortOrder + ", visible=" + visible
+", visible=" + visible
+ ", childNavs=" + childNavs + "]";
}
@@ -106,7 +106,7 @@ public class Applications extends JpaBaseDomain implements Serializable{
protected Accounts appUser;
protected int sortOrder;
protected int sortIndex;
protected String description;
@@ -242,8 +242,13 @@ public class Applications extends JpaBaseDomain implements Serializable{
}
public int getSortIndex() {
return sortIndex;
}
public void setSortIndex(int sortIndex) {
this.sortIndex = sortIndex;
}
/**
* @param icon the icon to set
@@ -64,7 +64,7 @@ public class OAuth20Details extends Applications {
this.setIcon(application.getIcon());
this.clientId=application.getId();
this.setSortOrder(application.getSortOrder());
this.setSortIndex(application.getSortIndex());
this.setVendor(application.getVendor());
this.setVendorUrl(application.getVendorUrl());
@@ -1,6 +1,6 @@
package com.connsec.crypto;
import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class SCryptPasswordEncoderTest {
@@ -10,11 +10,12 @@ public class SCryptPasswordEncoderTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
SCryptPasswordEncoder pe=new SCryptPasswordEncoder();
String c="$e0801$7Holo9EgzBeg5xf/WLZu3/5IQwOyEPDLJPgMXkF9jnekBrbQUMt4CF9O2trkz3zBCnCLpUMR437q/AjQ5TTToA==$oYB8KRSxAsxkKkt5r79W6r6P0wTUcKwGye1ivXRN0Ts="
;
System.out.println(pe.encode("shimingxy")+"_password");
System.out.println(pe.matches("shimingxy"+"_password", c));
BCryptPasswordEncoder pe=new BCryptPasswordEncoder();
//String c="$e0801$7Holo9EgzBeg5xf/WLZu3/5IQwOyEPDLJPgMXkF9jnekBrbQUMt4CF9O2trkz3zBCnCLpUMR437q/AjQ5TTToA==$oYB8KRSxAsxkKkt5r79W6r6P0wTUcKwGye1ivXRN0Ts="
//;
System.out.println(pe.encode("admin"));
// System.out.println(pe.encode("shimingxy")+"_password");
//System.out.println(pe.matches("shimingxy"+"_password", c));
}
}