com.verisign.epp.codec.verificationcode

## 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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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 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.

Copyright © VeriSign Inc. All Rights Reserved.