Class EPPAuthTokenHeader

java.lang.Object
com.verisign.epp.codec.authtoken.v01.EPPAuthTokenHeader
All Implemented Interfaces:
Serializable

public class EPPAuthTokenHeader extends Object implements Serializable
The EPPAuthTokenHeader is the EPPCodecComponent that knows how to encode and decode mfa element from/to XML and object instance.
See Also:
  • Field Details

  • Constructor Details

    • EPPAuthTokenHeader

      public EPPAuthTokenHeader()
      Create a new instance of EPPAuthTokenHeader
    • EPPAuthTokenHeader

      public EPPAuthTokenHeader(String aEncodedValue) throws EPPDecodeException
      Create a new instance of EPPAuthTokenHeader with the optional system and domain data.
      Throws:
      EPPDecodeException
    • EPPAuthTokenHeader

      public EPPAuthTokenHeader(String aAlgorithm, String aKeyId)
      Create a new instance of EPPAuthTokenHeader with the optional system and domain data.
    • EPPAuthTokenHeader

      public EPPAuthTokenHeader(String aAlgorithm, String aType, String aKeyId)
      Create a new instance of EPPAuthTokenHeader with the optional system and domain data.
  • Method Details

    • encode

      public String encode() throws EPPEncodeException
      Return base64 encoded string representation of JWS header
      Returns:
      base64 encoded string.
      Throws:
      EPPEncodeException - Error encoding the header.
    • decode

      public void decode() throws EPPDecodeException
      Populate the data of this instance with the data from the given encoded header
      Throws:
      EPPDecodeException - Thrown if any errors occur during decoding.
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPAuthTokenHeader compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPAuthTokenHeader instance to compare with
      Returns:
      true if equal false otherwise
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPAuthTokenHeader.
      Overrides:
      clone in class Object
      Returns:
      clone of EPPAuthTokenHeader
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • getAlgorithm

      public String getAlgorithm()
    • setAlgorithm

      public void setAlgorithm(String algorithm)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getKeyId

      public String getKeyId()
    • setKeyId

      public void setKeyId(String keyId)
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class Object
      Returns:
      Indented XML String if successful; ERROR otherwise.