import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
+import org.opendaylight.lispflowmapping.interfaces.lisp.ILispAuthentication;
import org.opendaylight.lispflowmapping.lisp.serializer.MapNotifySerializer;
import org.opendaylight.lispflowmapping.lisp.serializer.MapRegisterSerializer;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev150820.MapNotify;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev150820.MapRegister;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapNotify;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.MapRegister;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
authenticationLength = Mac.getInstance(algorithm).getMacLength();
tempAuthenticationData = new byte[authenticationLength];
} catch (NoSuchAlgorithmException e) {
- LOG.warn("No such MAC algorithm" + algorithm);
+ LOG.warn("No such MAC algorithm {}", algorithm, e);
}
}
return mac.doFinal(data);
} catch (InvalidKeyException e) {
- LOG.warn("Invalid password" + key);
+ LOG.warn("Invalid password {}", key, e);
} catch (NoSuchAlgorithmException e) {
- LOG.warn("No such MAC algorithm" + algorithm);
+ LOG.warn("No such MAC algorithm {}", algorithm, e);
}
return null;
}