Class ActivationRequest
- java.lang.Object
-
- com.inductiveautomation.ignition.common.licensing.ActivationRequest
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
UnactivationNotice
public class ActivationRequest extends java.lang.Object implements java.io.SerializableAn activation request has four things in it:- Licens key
- System information hash
- reload flag
- 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
-
-
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)booleanequals(java.lang.Object o)CDKeygetCdKey()java.util.Map<java.lang.String,java.lang.String>getSystemInfo()inthashCode()protected voidinitFromReader(java.io.BufferedReader reader)booleanisReload()Returns true if this activation request represens 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 voidpersistToWriter(java.io.PrintWriter writer)voidsetReload(boolean reload)java.lang.StringsystemId()java.lang.StringtoBase64()java.lang.StringtoString()
-
-
-
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.ExceptionCreates 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 represens 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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-