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.Serializable
An 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)
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 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 void
persistToWriter(java.io.PrintWriter writer)
void
setReload(boolean reload)
java.lang.String
systemId()
java.lang.String
toBase64()
java.lang.String
toString()
-
-
-
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 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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-