Roberto Sánchez
2014-09-18 a4b1e4c32927208e92ca9895fa780e18051d3932
src/main/java/net/curisit/securis/LicenseValidator.java
....@@ -14,7 +14,7 @@
1414
1515 public class LicenseValidator {
1616
17
- private static final Logger log = LogManager.getLogger(LicenseValidator.class);
17
+ private static final Logger LOG = LogManager.getLogger(LicenseValidator.class);
1818
1919 private static LicenseValidator singleton = new LicenseValidator();
2020 protected static byte[] LOGO_SECRET;
....@@ -23,7 +23,7 @@
2323 try {
2424 LOGO_SECRET = "Logo ipsum s3cr3t test áíóú".getBytes("utf-8");
2525 } catch (UnsupportedEncodingException e) {
26
- log.error("Unexpected error getting LOGO secret", e);
26
+ LOG.error("Unexpected error getting LOGO secret", e);
2727 }
2828 }
2929
....@@ -43,14 +43,14 @@
4343 String shaLogo = LicUtils.sha256(IOUtils.toByteArray(is), LOGO_SECRET);
4444 return shaLogo;
4545 } catch (IOException e) {
46
- log.warn("Customer logo was not found in images/logo_customer.png");
46
+ LOG.warn("Customer logo was not found in images/logo_customer.png");
4747 return null;
4848 }
4949 }
5050
5151 public void validateLogo(RequestBean reqBean) throws SeCurisException {
5252 if (reqBean.getCrcLogo() == null) {
53
- log.info("Customer logo is not included in license file and won't be validated");
53
+ LOG.info("Customer logo is not included in license file and won't be validated");
5454 } else {
5555 String currentCRC = getCrcLogo();
5656 if (!currentCRC.equals(reqBean.getCrcLogo()))