public class HostnameValidator extends Object implements FieldValidator
To be considered valid, the field value must be in one of these formats:
google.com
127.0.0.1
[2001:db8::1]
or 2001:db8::1
localhost
Constructor and Description |
---|
HostnameValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(Field field)
Implementations of this method can perform any necessary validation on the Field.
|
public void validate(Field field) throws ValidationException
FieldValidator
validate
in interface FieldValidator
field
- the field (name and value) to validate.ValidationException
- if the field is invalid.Copyright 2019 Ping Identity Corp. All rights reserved.