Package com.verisign.epp.codec.nv
Class EPPNameVerificationTst
java.lang.Object
com.verisign.epp.codec.nv.EPPNameVerificationTst
Is a unit test of the com.verisign.epp.codec.idntable package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PKIXParametersloadPKIXParameters(String aTrustStoreName) Loads the trust store file into thePKIXParametersused to verify the certificate chain The Java Trust Store is loaded with the trusted VSP certificates.static PublicKeyloadPublicKey(String aKeyStoreName, String aPublicKeyAlias) Loads the public key used to verify a digital signature signed with the associated private key, loaded byloadPrivateKeyEntry(String, String, String).static voidsetNumIterations(long aNumIterations) Sets the number of iterations to run per test.static voidsetup()JUNITsuitestatic method, which returns the tests associated withEPPNameVerificationTst.voidUnit test of the Check Command by sending a check command with three domain labels.voidUnit test of the Check Response by returning the result of checking three domain labels.voidUnit test of the Create Command, with the following tests: Create Domain Name Verification (DNV) object Create reserved Domain Name Verification (DNV) object Create Real Name Verification (RNV) object for person Create Real Name Verification (RNV) object for orgvoidUnit test of the Create Response, with the following tests: Success create response with a signed code Failed create response Pending create responsevoidUnit test of the Info Command, with the following tests: Info command for signed code. Info command for input data. Info command for signed code with authorization info.voidUnit test of the Info Response, with the following tests: Info response for DNV signed code Info response for DNV input Info response for RNV person input Info response for RNV org inputvoidUnit test of the pending action poll message.voidUnit test of the Update Command by sending an update command to change the authorization information.
-
Constructor Details
-
EPPNameVerificationTst
public EPPNameVerificationTst()
-
-
Method Details
-
testCheckCommand
public void testCheckCommand()Unit test of the Check Command by sending a check command with three domain labels. -
testCheckResponse
public void testCheckResponse()Unit test of the Check Response by returning the result of checking three domain labels. -
testInfoCommand
public void testInfoCommand()Unit test of the Info Command, with the following tests:- Info command for signed code.
- Info command for input data.
- Info command for signed code with authorization info.
-
testInfoResponse
public void testInfoResponse()Unit test of the Info Response, with the following tests:- Info response for DNV signed code
- Info response for DNV input
- Info response for RNV person input
- Info response for RNV org input
-
testCreateCommand
public void testCreateCommand()Unit test of the Create Command, with the following tests:- Create Domain Name Verification (DNV) object
- Create reserved Domain Name Verification (DNV) object
- Create Real Name Verification (RNV) object for person
- Create Real Name Verification (RNV) object for org
-
testCreateResponse
public void testCreateResponse()Unit test of the Create Response, with the following tests:- Success create response with a signed code
- Failed create response
- Pending create response
-
testUpdateCommand
public void testUpdateCommand()Unit test of the Update Command by sending an update command to change the authorization information. -
testPaPollResponse
public void testPaPollResponse()Unit test of the pending action poll message. -
setup
public static void setup()JUNITsuitestatic method, which returns the tests associated withEPPNameVerificationTst. -
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
Loads the trust store file into thePKIXParametersused to verify the certificate chain The Java Trust Store is loaded with the trusted VSP certificates.- Parameters:
aTrustStoreName- Trust store file name- Returns:
- Initialized
PKIXParametersinstance. - 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 byloadPrivateKeyEntry(String, String, String).- Parameters:
aKeyStoreName- Java Keystore containing the certificateaPublicKeyAlias- Java Keystore alias of thetrustedCertEntrycontaining the public key- Returns:
- Loaded
PublicKeyinstance - Throws:
Exception- Error loading the public key
-