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
DcvConfiguration
if 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 ChallengeType
The field for thechallengeType
record component.private final String
The field for thedomain
record component.private final String
The field for thefilename
record 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 aFilePreparationRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechallengeType
record component.domain()
Returns the value of thedomain
record component.final boolean
Indicates whether some other object is "equal to" this one.filename()
Returns the value of thefilename
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
domain
The field for thedomain
record component. -
filename
The field for thefilename
record component. -
challengeType
The field for thechallengeType
record 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 aFilePreparationRequest
record class.- Parameters:
domain
- the value for thedomain
record componentfilename
- the value for thefilename
record componentchallengeType
- the value for thechallengeType
record 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 thedomain
record component.- Returns:
- the value of the
domain
record component
-
filename
Returns the value of thefilename
record component.- Returns:
- the value of the
filename
record component
-
challengeType
Returns the value of thechallengeType
record component.- Returns:
- the value of the
challengeType
record component
-