Class AuthTokenHandler

java.lang.Object
com.verisign.epp.framework.authtoken.v01.EPPAuthTokenHandler
com.verisign.epp.serverstub.authtoken.v01.AuthTokenHandler
All Implemented Interfaces:
EPPEventHandler

public class AuthTokenHandler extends EPPAuthTokenHandler
The AuthTokenHandler class is a concrete implementation of the abstract com.verisign.epp.framework.EPPAuthTokenHandler class. It defines the Server's response to all received EPP Host Commands.
See Also:
  • Field Details

  • Constructor Details

    • AuthTokenHandler

      public AuthTokenHandler()
      Constructs an instance of AuthTokenHandler
  • Method Details

    • preHandleEvent

      protected void preHandleEvent(EPPEvent aEvent, Object aData) throws EPPHandleEventException
      Handles any common behavior that all AuthToken commands need to execute before they execute their command specific behavior.
      Overrides:
      preHandleEvent in class EPPAuthTokenHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this EPPAuthTokenHandler This is assumed to be an instance of SessionData here.
      Throws:
      EPPHandleEventException - Thrown if an error condition occurs. It must contain an EPPEventResponse
    • postHandleEvent

      protected void postHandleEvent(EPPEvent aEvent, Object aData) throws EPPHandleEventException
      Handles any common behavior that all AuthToken commands need to execute after they execute their command specific behavior.
      Overrides:
      postHandleEvent in class EPPAuthTokenHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this EPPAuthTokenHandler
      Throws:
      EPPHandleEventException - Thrown if an error condition occurs. It must contain an EPPEventResponse
    • doAuthTokenCheck

      protected EPPEventResponse doAuthTokenCheck(EPPEvent aEvent, Object aData)
      Invoked when an AuthToken Check command is received. Subclasses should define the behavior when an AuthToken Check command is received.
      Specified by:
      doAuthTokenCheck in class EPPAuthTokenHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this EPPAuthTokenHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.
    • doAuthTokenCreate

      protected EPPEventResponse doAuthTokenCreate(EPPEvent aEvent, Object aData)
      Invoked when a AuthToken Create command is received.
      Specified by:
      doAuthTokenCreate in class EPPAuthTokenHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this EPPAuthTokendHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.
    • doAuthTokenInfo

      protected EPPEventResponse doAuthTokenInfo(EPPEvent aEvent, Object aData)
      Invoked when an AuthToken Info command is received. Subclasses should define the behavior when an AuthToken Info command is received.
      Specified by:
      doAuthTokenInfo in class EPPAuthTokenHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this EPPAuthTokenHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.
    • doAuthTokenDelete

      protected EPPEventResponse doAuthTokenDelete(EPPEvent aEvent, Object aData)
      Invoked when an AuthToken Delete command is received. Subclasses should define the behavior when an AuthToken Delete command is received.
      Specified by:
      doAuthTokenDelete in class EPPAuthTokenHandler
      Parameters:
      aEvent - The EPPEvent that is being handled
      aData - Any data that a Server needs to send to this EPPAuthTokenHandler
      Returns:
      EPPEventResponse The response that should be sent back to the client.