Class EPPVerificationCodeTst

java.lang.Object
com.verisign.epp.codec.verificationcode.EPPVerificationCodeTst

public class EPPVerificationCodeTst extends Object
Is a unit test of the com.verisign.epp.codec.verificationcode package.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    loadPKIXParameters(String aTrustStoreName)
    Loads the trust store file into the PKIXParameters used to verify the certificate chain The Java Trust Store is loaded with the trusted VSP certificates.
    static PublicKey
    loadPublicKey(String aKeyStoreName, String aPublicKeyAlias)
    Loads the public key used to verify a digital signature signed with the associated private key, loaded by loadPrivateKeyEntry(String, String, String).
    static void
    setNumIterations(long aNumIterations)
    Sets the number of iterations to run per test.
    static void
    JUNIT suite static method, which returns the tests associated with EPPVerificationCodeTst.
    void
    Unit test of extending the domain create command with multiple typed verification codes contained in the verification code extension.
    void
    Unit test of extending the domain create command with a single untyped verification code contained in the verification code extension.
    void
    Test different encoded signed codes that include:
    Domain typed code Test encoding and decoding the Base64 encoded signed code value (no wrapper <verificationCode:code> XML element). Real-name typed code Negative test - Invalid vsp-id Negative test - Invalid code type
    void
    Test of the info extension with the cases:
    Empty info extension - Includes the default case of an empty extension element.
    void
    Test of the info response extension with the cases:
    Status - Return just the notApplicable verification status Status and Profile - Return the verification status and the profile Status, Profile, and Set Codes from Sponsoring Client - Return the status, profile, and two verification codes from the sponsoring registrar. Status, Profile, and Set Codes from Non-Sponsoring Client - Return the status, profile, and two verification codes from the non-sponsoring registrar. Status, Profile, and Missing Codes from Non-Sponsoring Client - Return the status, profile, and two missing codes from the non-sponsoring registrar. Status, Profile, Missing Codes, and Set Codes from Non-Sponsoring Client - Return the status, profile, and one missing code, and one set code from the non-sponsoring registrar. Status, Profile, and Set Codes from Sponsoring Client with Codes Set from Another Profile - Return the status, profile, and two verification codes from the sponsoring registrar, and include the set codes for the notApplicable profile.
    void
    Test the EPPVerificationCode class.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EPPVerificationCodeTst

      public EPPVerificationCodeTst()
  • Method Details

    • testVerificationCode

      public void testVerificationCode()
      Test the EPPVerificationCode class.
    • testDomainWithVerificationCode

      public void testDomainWithVerificationCode()
      Unit test of extending the domain create command with a single untyped verification code contained in the verification code extension.
    • testInfo

      public void testInfo()
      Test of the info extension with the cases:
      1. Empty info extension - Includes the default case of an empty extension element.
      2. Info extension with profile - Include the extension with the profile attribute set
    • testInfoResponse

      public void testInfoResponse()
      Test of the info response extension with the cases:
      1. Status - Return just the notApplicable verification status
      2. Status and Profile - Return the verification status and the profile
      3. Status, Profile, and Set Codes from Sponsoring Client - Return the status, profile, and two verification codes from the sponsoring registrar.
      4. Status, Profile, and Set Codes from Non-Sponsoring Client - Return the status, profile, and two verification codes from the non-sponsoring registrar.
      5. Status, Profile, and Missing Codes from Non-Sponsoring Client - Return the status, profile, and two missing codes from the non-sponsoring registrar.
      6. Status, Profile, Missing Codes, and Set Codes from Non-Sponsoring Client - Return the status, profile, and one missing code, and one set code from the non-sponsoring registrar.
      7. Status, Profile, and Set Codes from Sponsoring Client with Codes Set from Another Profile - Return the status, profile, and two verification codes from the sponsoring registrar, and include the set codes for the notApplicable profile.
    • testDomainWithMultiVerificationCode

      public void testDomainWithMultiVerificationCode()
      Unit test of extending the domain create command with multiple typed verification codes contained in the verification code extension.
    • testEncodedSignedCode

      public void testEncodedSignedCode()
      Test different encoded signed codes that include:
      1. Domain typed code
      2. Test encoding and decoding the Base64 encoded signed code value (no wrapper <verificationCode:code> XML element).
      3. Real-name typed code
      4. Negative test - Invalid vsp-id
      5. Negative test - Invalid code type
    • setup

      public static void setup()
      JUNIT suite static method, which returns the tests associated with EPPVerificationCodeTst.
    • setNumIterations

      public static void setNumIterations(long aNumIterations)
      Sets the number of iterations to run per test.
      Parameters:
      aNumIterations - number of iterations to run per test
    • loadPKIXParameters

      public static PKIXParameters loadPKIXParameters(String aTrustStoreName) throws Exception
      Loads the trust store file into the PKIXParameters used to verify the certificate chain The Java Trust Store is loaded with the trusted VSP certificates.
      Parameters:
      aTrustStoreName - Trust store file name
      Returns:
      Initialized PKIXParameters instance.
      Throws:
      Exception - Error initializing the PKIX parameters
    • loadPublicKey

      public static PublicKey loadPublicKey(String aKeyStoreName, String aPublicKeyAlias) throws Exception
      Loads the public key used to verify a digital signature signed with the associated private key, loaded by loadPrivateKeyEntry(String, String, String).
      Parameters:
      aKeyStoreName - Java Keystore containing the certificate
      aPublicKeyAlias - Java Keystore alias of the trustedCertEntry containing the public key
      Returns:
      Loaded PublicKey instance
      Throws:
      Exception - Error loading the public key