Package com.verisign.epp.serverstub
Class NameVerificationHandler
java.lang.Object
com.verisign.epp.framework.EPPNameVerificationHandler
com.verisign.epp.serverstub.NameVerificationHandler
- All Implemented Interfaces:
EPPEventHandler
Stub handler for the Name Verification commands.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EPPEventResponsedoNameVerificationCheck(EPPEvent aEvent, Object aData) Override base handlerdoNameVerificationCheckmethod and add handling of the Name Verification Check Command.protected EPPEventResponsedoNameVerificationCreate(EPPEvent aEvent, Object aData) Override base handlerdoNameVerificationCreatemethod and add handling of the Name Verification Create Command.protected EPPEventResponsedoNameVerificationInfo(EPPEvent aEvent, Object aData) Override base handlerdoNameVerificationInfomethod and add handling of the Name Verification Info Command.protected EPPEventResponsedoNameVerificationUpdate(EPPEvent aEvent, Object aData) Override base handlerdoNameVerificationUpdatemethod and add handling of the Name Verification Update Command.static 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).protected voidpreHandleEvent(EPPEvent aEvent, Object aData) Do any pre-handling of commands.Methods inherited from class com.verisign.epp.framework.EPPNameVerificationHandler
getNamespace, handleEvent, postHandleEvent
-
Constructor Details
-
NameVerificationHandler
public NameVerificationHandler()Constructs an instance of IdnMapDomainHandler
-
-
Method Details
-
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
-
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
-
preHandleEvent
Do any pre-handling of commands.- Overrides:
preHandleEventin classEPPNameVerificationHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisNameVerificationHandlerThis is assumed to be an instance of SessionData here.- Throws:
EPPHandleEventException- Thrown if an error condition occurs. It must contain anEPPEventResponse
-
doNameVerificationCheck
Override base handlerdoNameVerificationCheckmethod and add handling of the Name Verification Check Command.- Specified by:
doNameVerificationCheckin classEPPNameVerificationHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisNameVerificationHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doNameVerificationInfo
Override base handlerdoNameVerificationInfomethod and add handling of the Name Verification Info Command.- Specified by:
doNameVerificationInfoin classEPPNameVerificationHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisNameVerificationHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doNameVerificationCreate
Override base handlerdoNameVerificationCreatemethod and add handling of the Name Verification Create Command.- Specified by:
doNameVerificationCreatein classEPPNameVerificationHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisNameVerificationHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-
doNameVerificationUpdate
Override base handlerdoNameVerificationUpdatemethod and add handling of the Name Verification Update Command.- Specified by:
doNameVerificationUpdatein classEPPNameVerificationHandler- Parameters:
aEvent- TheEPPEventthat is being handledaData- Any data that a Server needs to send to thisNameVerificationHandler- Returns:
- EPPEventResponse The response that should be sent back to the client.
-