Interface EPPVerificationCodeValidator
-
- All Known Implementing Classes:
TrustAnchorVerificationCodeValidator
public interface EPPVerificationCodeValidator
Validates a verification code. A implementing class can define different mechanisms for verifying theEPPVerificationCode
instance using server-specific policies. The implementing class should be thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
validate(EPPVerificationCode aVerificationCode, java.lang.Object aData)
Validate the contents of a verification code using local server policy.
-
-
-
Method Detail
-
validate
boolean validate(EPPVerificationCode aVerificationCode, java.lang.Object aData) throws EPPException
Validate the contents of a verification code using local server policy. For example, the code value and the type can be verified against the user's profile or against the matching trust anchor certificate. Many mechanisms can be created.- Parameters:
aVerificationCode
- Verification code to validateaData
- Optional extra server-specific data. Pass asnull
if not needed.- Returns:
true
if the verification code is valid;false
otherwise.- Throws:
EPPException
- Error executing the validation.
-
-