Interface EPPVerificationCodeValidator

All Known Implementing Classes:
TrustAnchorVerificationCodeValidator

public interface EPPVerificationCodeValidator
Validates a verification code. A implementing class can define different mechanisms for verifying the EPPVerificationCode instance using server-specific policies. The implementing class should be thread-safe.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    validate(EPPVerificationCode aVerificationCode, Object aData)
    Validate the contents of a verification code using local server policy.
  • Method Details

    • validate

      boolean validate(EPPVerificationCode aVerificationCode, 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 validate
      aData - Optional extra server-specific data. Pass as null if not needed.
      Returns:
      true if the verification code is valid; false otherwise.
      Throws:
      EPPException - Error executing the validation.