Record Class FilePreparationRequest
- Record Components:
domain- the domain for which the file validation preparation is requestedThis field specifies the domain name that is the subject of the file validation request. The domain name must be a valid fully qualified domain name (FQDN).
filename- the filename where the challenge value will be stored and queried on the serverThis field specifies the filename where the challenge value will be stored and queried on the server. The file must be placed in the /.well-known/pki-validation/ directory of the domain's web server. This field is optional, and will default to the value configured in
DcvConfigurationif not provided.challengeType- the type of challenge to use for validationThis field indicates the type of challenge that will be used in the file validation process. The challenge type is either RANDOM_VALUE or REQUEST_TOKEN. The RANDOM_VALUE challenge type requires the customer to use a CA-generated random value, while the REQUEST_TOKEN challenge type requires the customer to use a request token generated themselves according to the CA's specifications.
This class encapsulates the details required to prepare for file validation. File validation is a method used to verify the ownership or control of a domain by placing a specific file at a predetermined location on the domain's web server. The FilePreparationRequest class includes the domain for which the authentication is being prepared, the type of challenge used for validation, and an optional filename if the default will not be used.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChallengeTypeThe field for thechallengeTyperecord component.private final StringThe field for thedomainrecord component.private final StringThe field for thefilenamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFilePreparationRequest(String domain) Constructs a new FilePreparationRequest with the specified domain and a default challenge type of RANDOM_VALUE.FilePreparationRequest(String domain, String filename, ChallengeType challengeType) Creates an instance of aFilePreparationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechallengeTyperecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
domain
The field for thedomainrecord component. -
filename
The field for thefilenamerecord component. -
challengeType
The field for thechallengeTyperecord component.
-
-
Constructor Details
-
FilePreparationRequest
Constructs a new FilePreparationRequest with the specified domain and a default challenge type of RANDOM_VALUE.This constructor initializes a new instance of FilePreparationRequest using the provided domain name and sets the challenge type to RANDOM_VALUE by default. Using the REQUEST_TOKEN challenge type does not require any domain-specific data, so calling prepare for a domain name using RANDOM_VALUE is the most common use case for file validation preparation.
- Parameters:
domain- the domain for which the file validation preparation is requestedThis field specifies the domain name that is the subject of the file validation request. The domain name must be a valid fully qualified domain name (FQDN).
-
FilePreparationRequest
Creates an instance of aFilePreparationRequestrecord class.- Parameters:
domain- the value for thedomainrecord componentfilename- the value for thefilenamerecord componentchallengeType- the value for thechallengeTyperecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-
challengeType
Returns the value of thechallengeTyperecord component.- Returns:
- the value of the
challengeTyperecord component
-