Class EPPAuthTokenMfa
java.lang.Object
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenMfa
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The
EPPAuthTokenMfa is the EPPCodecComponent that knows how
to encode and decode mfa element from/to XML and object instance.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPAuthTokenMfa(String aValue) EPPAuthTokenMfa(String aValue, String aType) EPPAuthTokenMfa(String aValue, String aType, String aCustom) -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voidPopulate the data of this instance with the data stored in the given Element of the DOM treeSets this instance's data in the given XML documentreturn the name of this custom typeget type of this mfaget the actual mfa valueGets the EPP namespace associated with theEPPCodecComponent.booleanvoidsetCustomValue(String customValue) set custom valuevoidsetMfaType(String aType) set the type of mfavoidsetMfaValue(String mfaValue) set mfa value as stringtoString()
-
Field Details
-
MFA_TYPE_TOTP
TOTP as mfa type- See Also:
-
MFA_TYPE_KEY
Key as mfa type- See Also:
-
MFA_TYPE_BIOMETRIC
TOTP as biometric type- See Also:
-
MFA_TYPE_DEVICE
TOTP as device type- See Also:
-
MFA_TYPE_PUSH
Push as mfa type- See Also:
-
MFA_TYPE_CUSTOM
Custom as mfa type- See Also:
-
ELM_LOCALNAME
- See Also:
-
-
Constructor Details
-
EPPAuthTokenMfa
public EPPAuthTokenMfa() -
EPPAuthTokenMfa
-
EPPAuthTokenMfa
-
EPPAuthTokenMfa
-
-
Method Details
-
hasCustomType
public boolean hasCustomType() -
encode
Sets this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM document used as a factory of DOM objects.- Returns:
- instance root DOM element along with attribute child nodes.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The root element of the fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
getNamespace
Gets the EPP namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- Namespace URI associated with the
EPPCodecComponent.
-
setMfaType
set the type of mfa- Parameters:
aType-
-
getMfaType
get type of this mfa- Returns:
- string value of mfa type
-
getMfaValue
get the actual mfa value- Returns:
- string
-
setMfaValue
set mfa value as string- Parameters:
mfaValue- string representing the value
-
getCustomValue
return the name of this custom type- Returns:
-
setCustomValue
set custom value- Parameters:
customValue-
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPCodecComponent - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
-