Autopsy  4.18.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 HostNameValidator.java.

Member Function Documentation

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

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

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

Definition at line 73 of file HostNameValidator.java.

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

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

Parameters
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.
Returns
The validation message if the name is not valid or null.

Definition at line 49 of file HostNameValidator.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.