Class ActivationData

java.lang.Object
de.aristaflow.adept2.base.licensing.ActivationData
All Implemented Interfaces:
Serializable

public class ActivationData extends Object implements Serializable
This class represents the data that is provided as response to an activation request, that is, this indicates a successful activation.
Author:
Ulrich Kreher
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActivationData(int activationID, int licenceID, long activationTime, long localActivationTime, String document)
    Creates a new object for activation data with the designated attributes.
    ActivationData(int activationID, int licenceID, long activationTime, String document)
    Creates a new object for activation data as provided by the activation server.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the ID of the activation which is a continuous number counting the successful and unsuccessful activation requests.
    long
    Gets the time this activation has been successful, as provided by the activation server.
    int
    Gets the ID of the licence which is activated.
    long
    Gets the time this activation has been successful, as provided by the local system.
    Gets the (signed) XML document (as string) representing this activation data as retrieved from the activation server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ActivationData

      public ActivationData(int activationID, int licenceID, long activationTime, String document)
      Creates a new object for activation data as provided by the activation server. This automatically sets the local activation time as this is not provided by the activation server.
      Parameters:
      activationID - The ID of the activation which is a continuous number counting the successful and unsuccessful activation requests.
      licenceID - The ID of the licence which is activated.
      activationTime - The time this activation has been successful, as provided by the activation server.
      document - The (signed) XML document (as string) representing this activation data as retrieved from the activation server.
    • ActivationData

      public ActivationData(int activationID, int licenceID, long activationTime, long localActivationTime, String document)
      Creates a new object for activation data with the designated attributes.
      Parameters:
      activationID - The ID of the activation which is a continuous number counting the successful and unsuccessful activation requests.
      licenceID - The ID of the licence which is activated.
      activationTime - The time this activation has been successful, as provided by the activation server.
      localActivationTime - The time this activation has been successful, as provided by the local system.
      document - The (signed) XML document (as string) representing this activation data as retrieved from the activation server.
  • Method Details

    • getActivationID

      public int getActivationID()
      Gets the ID of the activation which is a continuous number counting the successful and unsuccessful activation requests.
      Returns:
      The ID of the activation which is a continuous number counting the successful and unsuccessful activation requests.
    • getLicenceID

      public int getLicenceID()
      Gets the ID of the licence which is activated.
      Returns:
      The ID of the licence which is activated.
    • getActivationTime

      public long getActivationTime()
      Gets the time this activation has been successful, as provided by the activation server.
      Returns:
      The time this activation has been successful, as provided by the activation server.
    • getLocalActivationTime

      public long getLocalActivationTime()
      Gets the time this activation has been successful, as provided by the local system. This allows to check for the time difference between the activation server and the local system time.
      Returns:
      The time this activation has been successful, as provided by the local system.
    • getXMLDocument

      public String getXMLDocument()
      Gets the (signed) XML document (as string) representing this activation data as retrieved from the activation server.
      Returns:
      The (signed) XML document (as string) representing this activation data as retrieved from the activation server.