Package com.verisign.epp.interfaces
Class EPPLoginSecLoginAdapter
- java.lang.Object
-
- com.verisign.epp.interfaces.EPPLoginSecLoginAdapter
-
- All Implemented Interfaces:
EPPLoginAdapter
public class EPPLoginSecLoginAdapter extends java.lang.Object implements EPPLoginAdapter
Interface that can be implemented and configured to be called byEPPSession
to customize theEPPLoginCmd
prior to sending it. Both the server'sEPPGreeting
and the originalEPPLoginCmd
is provided. The adapter can modify theEPPLoginCmd
that will then be sent.
-
-
Constructor Summary
Constructors Constructor Description EPPLoginSecLoginAdapter()
Constructor that will retrieve the useUserAgent attribute value fromEPPEnv
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adaptLogin(EPPLoginCmd aLoginCmd, EPPGreeting aGreeting)
Adapt theEPPLoginCmd
aLoginCmd
parameter based on the current state of theEPPLoginCmd
and the contents of theEPPGreeting
aGreeting
parameter sent by the server.
-
-
-
Constructor Detail
-
EPPLoginSecLoginAdapter
public EPPLoginSecLoginAdapter()
Constructor that will retrieve the useUserAgent attribute value fromEPPEnv
.
-
-
Method Detail
-
adaptLogin
public void adaptLogin(EPPLoginCmd aLoginCmd, EPPGreeting aGreeting) throws EPPCommandException
Adapt theEPPLoginCmd
aLoginCmd
parameter based on the current state of theEPPLoginCmd
and the contents of theEPPGreeting
aGreeting
parameter sent by the server.- Specified by:
adaptLogin
in interfaceEPPLoginAdapter
- Parameters:
aLoginCmd
- OriginalEPPLoginCmd
created byEPPSession
that can be adapted by the concreteEPPLoginAdapter
.aGreeting
-EPPGreeting
returned by the server that can be used to drive the adapting of theEPPLoginCmd
.- Throws:
EPPCommandException
- Error found with adapting the login
-
-