Go to the documentation of this file.
19package com.basistech.df.cybertriage.autopsy.ctapi.util;
21import com.license4j.HardwareID;
22import java.net.InetAddress;
23import java.net.UnknownHostException;
24import java.util.logging.Level;
25import org.apache.commons.lang3.StringUtils;
26import org.sleuthkit.autopsy.coreutils.Logger;
36 private static final String
USER_NAME = System.getProperty(
"user.name");
51 String hostName = StringUtils.defaultString(InetAddress.getLocalHost().getCanonicalHostName());
52 String macAddressMd5 = StringUtils.isNotBlank(HardwareID.getHardwareIDFromEthernetAddress())
56 String usernameMd5 = StringUtils.isNotBlank(
USER_NAME)
60 cachedId = macAddressMd5 +
"_" + usernameMd5;
62 }
catch (UnknownHostException ex) {
63 LOGGER.log(Level.WARNING,
"Unable to determine host name.", ex);
static String generateLicenseHostID()
static final String USER_NAME
static final Logger LOGGER
static String getMD5MessageDigest(String inp)
synchronized static Logger getLogger(String name)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.