Class NameVerificationHandler

java.lang.Object
com.verisign.epp.framework.EPPNameVerificationHandler
com.verisign.epp.serverstub.NameVerificationHandler
All Implemented Interfaces:
EPPEventHandler

public class NameVerificationHandler extends EPPNameVerificationHandler
Stub handler for the Name Verification commands.
  • 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 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
    • 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
    • preHandleEvent

      protected void preHandleEvent(EPPEvent aEvent, Object aData) throws EPPHandleEventException
      Do any pre-handling of commands.
      Overrides:
      preHandleEvent in class EPPNameVerificationHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this NameVerificationHandler This is assumed to be an instance of SessionData here.
      Throws:
      EPPHandleEventException - Thrown if an error condition occurs. It must contain an EPPEventResponse
    • doNameVerificationCheck

      protected EPPEventResponse doNameVerificationCheck(EPPEvent aEvent, Object aData)
      Override base handler doNameVerificationCheck method and add handling of the Name Verification Check Command.
      Specified by:
      doNameVerificationCheck in class EPPNameVerificationHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this NameVerificationHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.
    • doNameVerificationInfo

      protected EPPEventResponse doNameVerificationInfo(EPPEvent aEvent, Object aData)
      Override base handler doNameVerificationInfo method and add handling of the Name Verification Info Command.
      Specified by:
      doNameVerificationInfo in class EPPNameVerificationHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this NameVerificationHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.
    • doNameVerificationCreate

      protected EPPEventResponse doNameVerificationCreate(EPPEvent aEvent, Object aData)
      Override base handler doNameVerificationCreate method and add handling of the Name Verification Create Command.
      Specified by:
      doNameVerificationCreate in class EPPNameVerificationHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this NameVerificationHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.
    • doNameVerificationUpdate

      protected EPPEventResponse doNameVerificationUpdate(EPPEvent aEvent, Object aData)
      Override base handler doNameVerificationUpdate method and add handling of the Name Verification Update Command.
      Specified by:
      doNameVerificationUpdate in class EPPNameVerificationHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this NameVerificationHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.