public class EPPNameVerificationTst
extends junit.framework.TestCase
| Constructor and Description |
|---|
EPPNameVerificationTst(java.lang.String name)
Creates a new EPPNameVerificationTst object.
|
| Modifier and Type | Method and Description |
|---|---|
static java.security.cert.PKIXParameters |
loadPKIXParameters(java.lang.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 java.security.PublicKey |
loadPublicKey(java.lang.String aKeyStoreName,
java.lang.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 |
main(java.lang.String[] args)
Unit test main, which accepts the following system property options:
iterations Number of unit test iterations to run validate Turn XML validation on ( true) or off (
false). |
static void |
setNumIterations(long aNumIterations)
Sets the number of iterations to run per test.
|
protected void |
setUp()
JUNIT
setUp method, which sets the default client Id to
"theRegistrar" and initializes the
EPPNameVerificationMapFactory with the
EPPCodec. |
static junit.framework.Test |
suite()
JUNIT
suite static method, which returns the tests
associated with EPPNameVerificationTst. |
protected void |
tearDown()
JUNIT
tearDown, which currently does nothing. |
void |
testCheckCommand()
Unit test of the Check Command by sending a check command with three
domain labels.
|
void |
testCheckResponse()
Unit test of the Check Response by returning the result of checking three
domain labels.
|
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
|
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
|
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.
|
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
|
void |
testPaPollResponse()
Unit test of the pending action poll message.
|
void |
testUpdateCommand()
Unit test of the Update Command by sending an update command to change
the authorization information.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, failpublic EPPNameVerificationTst(java.lang.String name)
name - Name of testpublic void testCheckCommand()
public void testCheckResponse()
public void testInfoCommand()
public void testInfoResponse()
public void testCreateCommand()
public void testCreateResponse()
public void testUpdateCommand()
public void testPaPollResponse()
protected void setUp()
setUp method, which sets the default client Id to
"theRegistrar" and initializes the
EPPNameVerificationMapFactory with the
EPPCodec.setUp in class junit.framework.TestCaseprotected void tearDown()
tearDown, which currently does nothing.tearDown in class junit.framework.TestCasepublic static junit.framework.Test suite()
suite static method, which returns the tests
associated with EPPNameVerificationTst.public static void main(java.lang.String[] args)
true) or off (
false). If validate is not specified, validation will be
off.args - Program argumentspublic static void setNumIterations(long aNumIterations)
aNumIterations - number of iterations to run per testpublic static java.security.cert.PKIXParameters loadPKIXParameters(java.lang.String aTrustStoreName)
throws java.lang.Exception
PKIXParameters used to
verify the certificate chain The Java Trust Store is loaded with the
trusted VSP certificates.aTrustStoreName - Trust store file namePKIXParameters instance.java.lang.Exception - Error initializing the PKIX parameterspublic static java.security.PublicKey loadPublicKey(java.lang.String aKeyStoreName,
java.lang.String aPublicKeyAlias)
throws java.lang.Exception
loadPrivateKeyEntry(String, String, String).aKeyStoreName - Java Keystore containing the certificateaPublicKeyAlias - Java Keystore alias of the trustedCertEntry
containing the public keyPublicKey instancejava.lang.Exception - Error loading the public key