Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | List of all members
org.sleuthkit.autopsy.datamodel.hosts.HostNameValidator Class Reference

Static Public Member Functions

static Set< String > getSanitizedHostNames (Collection< Host > hosts)
static String getValidationMessage (String curName, String initialName, Set< String > currentHostsTrimmedUpper)

Detailed Description

Provides methods for validating host names.

Definition at line 32 of file

Member Function Documentation

static Set<String> org.sleuthkit.autopsy.datamodel.hosts.HostNameValidator.getSanitizedHostNames ( Collection< Host >  hosts)

Generates a list of host names trimmed and to upper case that can be used with getValidationMessage.

hostsThe hosts.
The set of host names trimmed and to upper case.

Definition at line 73 of file

static String org.sleuthkit.autopsy.datamodel.hosts.HostNameValidator.getValidationMessage ( String  curName,
String  initialName,
Set< String >  currentHostsTrimmedUpper 

Gets the validation message based on the current text checked against the host names.

curNameThe current name in the text field.
initialNameIf editing a name, the initial name of the host. Otherwise, null can be provided for this parameter.
currentHostsTrimmedUpperThe current host names. This set should be sanitized to upper case and trimmed.
The validation message if the name is not valid or null.

Definition at line 49 of file

The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.