Class ActivationRequest

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    UnactivationNotice

    public class ActivationRequest
    extends java.lang.Object
    implements java.io.Serializable
    An activation request has four things in it:
    1. Licens key
    2. System information hash
    3. reload flag
    4. System details

    The key and system hash are echoed back into the license file. The system info is transmitted for our own analytical purposes.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected CDKey cdKey  
      protected boolean reload  
      protected java.util.Map<java.lang.String,​java.lang.String> systemDetails  
      protected java.lang.String systemId  
      protected int version  
    • Constructor Summary

      Constructors 
      Constructor Description
      ActivationRequest​(CDKey cdKey, java.lang.String systemId, java.util.Map<java.lang.String,​java.lang.String> systemDetails)  
      ActivationRequest​(java.lang.String base64)
      Creates an ActivationRequest from the format created by toBase64()
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected byte[] decrypt​(byte[] input)  
      protected byte[] encrypt​(byte[] input)  
      boolean equals​(java.lang.Object o)  
      CDKey getCdKey()  
      java.util.Map<java.lang.String,​java.lang.String> getSystemInfo()  
      int hashCode()  
      protected void initFromReader​(java.io.BufferedReader reader)  
      boolean isReload()
      Returns true if this activation request represents a "re-load" request, which means that it came from a system upon which the given key is already activated, but the customer is looking to refresh the license details in the case where they may have added or altered details of the license through IA.
      protected void persistToWriter​(java.io.PrintWriter writer)  
      void setReload​(boolean reload)  
      java.lang.String systemId()  
      java.lang.String toBase64()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • version

        protected int version
      • cdKey

        protected CDKey cdKey
      • systemId

        protected java.lang.String systemId
      • systemDetails

        protected java.util.Map<java.lang.String,​java.lang.String> systemDetails
      • reload

        protected boolean reload
    • Constructor Detail

      • ActivationRequest

        public ActivationRequest​(CDKey cdKey,
                                 java.lang.String systemId,
                                 java.util.Map<java.lang.String,​java.lang.String> systemDetails)
      • ActivationRequest

        public ActivationRequest​(java.lang.String base64)
                          throws java.lang.Exception
        Creates an ActivationRequest from the format created by toBase64()
        Throws:
        java.lang.Exception
    • Method Detail

      • initFromReader

        protected void initFromReader​(java.io.BufferedReader reader)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getCdKey

        public CDKey getCdKey()
      • systemId

        public java.lang.String systemId()
      • getSystemInfo

        public java.util.Map<java.lang.String,​java.lang.String> getSystemInfo()
      • isReload

        public boolean isReload()
        Returns true if this activation request represents a "re-load" request, which means that it came from a system upon which the given key is already activated, but the customer is looking to refresh the license details in the case where they may have added or altered details of the license through IA.
      • setReload

        public void setReload​(boolean reload)
      • toBase64

        public java.lang.String toBase64()
      • persistToWriter

        protected void persistToWriter​(java.io.PrintWriter writer)
      • encrypt

        protected byte[] encrypt​(byte[] input)
      • decrypt

        protected byte[] decrypt​(byte[] input)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object