Class EPPAuthTokenPayload
java.lang.Object
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenPayload
- All Implemented Interfaces:
Serializable
The
EPPAuthTokenPayload 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
ConstructorsConstructorDescriptionCreate a new instance ofEPPAuthTokenPayloadEPPAuthTokenPayload(String aEncodedValue) EPPAuthTokenPayload(String aJwtId, String aSubject, Date aExpirationTime, List<String> aEntitlements) Create a new instance ofEPPAuthTokenPayloadwith the optional system and domain data. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPAuthTokenPayload.voidPopulate the data of this instance with the data from the given encoded headerencode()Return base64 encoded string representation of JWS headerbooleanimplements a deepEPPAuthTokenPayloadcompare.getJwtId()voidsetEntitlements(List<String> entitlements) voidsetExpirationTime(Date expirationTime) voidvoidsetSubject(String subject) toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_JWT_ID
XML local name forEPPAuthTokenPayload.- See Also:
-
ELM_SUBJECT
XML local name forEPPAuthTokenPayload.- See Also:
-
ELM_EXPIRATION_TIME
XML local name forEPPAuthTokenPayload.- See Also:
-
ELM_ENTITLEMENTS
XML local name forEPPAuthTokenPayload.- See Also:
-
-
Constructor Details
-
EPPAuthTokenPayload
public EPPAuthTokenPayload()Create a new instance ofEPPAuthTokenPayload -
EPPAuthTokenPayload
- Parameters:
aEncodedValue-- Throws:
EPPDecodeException
-
EPPAuthTokenPayload
public EPPAuthTokenPayload(String aJwtId, String aSubject, Date aExpirationTime, List<String> aEntitlements) Create a new instance ofEPPAuthTokenPayloadwith the optional system and domain data.
-
-
Method Details
-
encode
Return base64 encoded string representation of JWS header- Returns:
- base64 encoded string.
- Throws:
EPPEncodeException- Error encoding the header.
-
decode
Populate the data of this instance with the data from the given encoded header- Parameters:
aEncodedPayload- base64 encoded string- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
equals
implements a deepEPPAuthTokenPayloadcompare. -
clone
CloneEPPAuthTokenPayload.- Overrides:
clonein classObject- Returns:
- clone of
EPPAuthTokenPayload - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getJwtId
-
setJwtId
-
getSubject
-
setSubject
-
getExpirationTime
-
setExpirationTime
-
getEntitlements
-
setEntitlements
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-