Roberto Sánchez
2014-09-18 e1743c557079051217d1e65901f4ae9f9dad7d00
src/main/java/net/curisit/securis/ReqGenerator.java
....@@ -23,14 +23,7 @@
2323
2424 private static ReqGenerator singleton = new ReqGenerator();
2525
26
- private byte[] LOGO_SECRET;
27
-
2826 private ReqGenerator() {
29
- try {
30
- LOGO_SECRET = "Logo ipsum s3cr3t test áíóú".getBytes("utf-8");
31
- } catch (UnsupportedEncodingException e) {
32
- e.printStackTrace();
33
- }
3427 }
3528
3629 public static ReqGenerator getInstance() {
....@@ -91,7 +84,7 @@
9184 if (is == null)
9285 return null;
9386 try {
94
- String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LOGO_SECRET);
87
+ String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LicenseValidator.LOGO_SECRET);
9588 return shaLogo;
9689 } catch (IOException e) {
9790 log.error("Customer logo was not found in classpath in " + logResource, e);