/*
- * Copyright (c) 2013 Contextream, Inc. and others. All rights reserved.
+ * Copyright (c) 2014 Contextream, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
public class LispMACAuthentication implements ILispAuthentication {
- protected static final Logger logger = LoggerFactory.getLogger(LispMACAuthentication.class);
+ protected static final Logger LOG = LoggerFactory.getLogger(LispMACAuthentication.class);
protected String algorithm;
private byte[] tempAuthenticationData;
authenticationLength = Mac.getInstance(algorithm).getMacLength();
tempAuthenticationData = new byte[authenticationLength];
} catch (NoSuchAlgorithmException e) {
- logger.error("No such MAC algorithm" + algorithm);
+ LOG.warn("No such MAC algorithm" + algorithm);
}
}
return mac.doFinal(data);
} catch (InvalidKeyException e) {
- logger.error("Invalid password" + key);
+ LOG.warn("Invalid password" + key);
} catch (NoSuchAlgorithmException e) {
- logger.error("No such MAC algorithm" + algorithm);
+ LOG.warn("No such MAC algorithm" + algorithm);
}
return null;
}