Package com.verisign.epp.interfaces
Class EPPLoginSecLoginAdapter
java.lang.Object
com.verisign.epp.interfaces.EPPLoginSecLoginAdapter
- All Implemented Interfaces:
EPPLoginAdapter
Interface that can be implemented and configured to be called by
EPPSession to customize the EPPLoginCmd prior to sending it.
Both the server's EPPGreeting and the original EPPLoginCmd is
provided. The adapter can modify the EPPLoginCmd that will then be
sent.-
Constructor Summary
ConstructorsConstructorDescriptionConstructor that will retrieve the useUserAgent attribute value fromEPPEnv. -
Method Summary
Modifier and TypeMethodDescriptionvoidadaptLogin(EPPLoginCmd aLoginCmd, EPPGreeting aGreeting) Adapt theEPPLoginCmdaLoginCmdparameter based on the current state of theEPPLoginCmdand the contents of theEPPGreetingaGreetingparameter sent by the server.
-
Constructor Details
-
EPPLoginSecLoginAdapter
public EPPLoginSecLoginAdapter()Constructor that will retrieve the useUserAgent attribute value fromEPPEnv.
-
-
Method Details
-
adaptLogin
Adapt theEPPLoginCmdaLoginCmdparameter based on the current state of theEPPLoginCmdand the contents of theEPPGreetingaGreetingparameter sent by the server.- Specified by:
adaptLoginin interfaceEPPLoginAdapter- Parameters:
aLoginCmd- OriginalEPPLoginCmdcreated byEPPSessionthat can be adapted by the concreteEPPLoginAdapter.aGreeting-EPPGreetingreturned by the server that can be used to drive the adapting of theEPPLoginCmd.- Throws:
EPPCommandException- Error found with adapting the login
-