| .. | .. |
|---|
| 23 | 23 | |
|---|
| 24 | 24 | private static ReqGenerator singleton = new ReqGenerator(); |
|---|
| 25 | 25 | |
|---|
| 26 | | - private byte[] LOGO_SECRET; |
|---|
| 27 | | - |
|---|
| 28 | 26 | private ReqGenerator() { |
|---|
| 29 | | - try { |
|---|
| 30 | | - LOGO_SECRET = "Logo ipsum s3cr3t test áíóú".getBytes("utf-8"); |
|---|
| 31 | | - } catch (UnsupportedEncodingException e) { |
|---|
| 32 | | - e.printStackTrace(); |
|---|
| 33 | | - } |
|---|
| 34 | 27 | } |
|---|
| 35 | 28 | |
|---|
| 36 | 29 | public static ReqGenerator getInstance() { |
|---|
| .. | .. |
|---|
| 91 | 84 | if (is == null) |
|---|
| 92 | 85 | return null; |
|---|
| 93 | 86 | try { |
|---|
| 94 | | - String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LOGO_SECRET); |
|---|
| 87 | + String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LicenseValidator.LOGO_SECRET); |
|---|
| 95 | 88 | return shaLogo; |
|---|
| 96 | 89 | } catch (IOException e) { |
|---|
| 97 | 90 | log.error("Customer logo was not found in classpath in " + logResource, e); |
|---|