[ whitefrost.com | Account Manager 4 Product Page ]

Core.Tools.License.License Class Reference

Summary description for License. More...

List of all members.

Public Member Functions

 License (Core.Interfaces.ISecurityManager signatory, Core.Interfaces.ISecurityManager cipher, byte[] enc_lic, byte[] signature)
 License (byte[] enc_lic, byte[] signature)
String ToPublicString ()
override String ToString ()

Static Public Member Functions

static bool ValidateLicenseFormat (String v)

Properties

int RemainingConsumption [get]
bool IsUnrestrictedLicense [get]
bool IsMultiLicense [get]
bool IsSingleLicense [get]
bool IsExpired [get]
byte[] LicenseSignature [get]
byte[] EncodedLicense [get]
bool HaveSignatory [get]
bool IsTrial [get]
bool IsVolatile [get]
bool IsKeyValid [get]
bool IsValid [get]
int ConsumptionLevel [get]
String ConsumptionType [get]
DateTime GrantDate [get]
DateTime ExpiryDate [get]
int AccessLevelData [get]
String AccessLevel [get]
int CustomerId [get]
int VendorId [get]
int LastMinorVersion [get]
int LastMajorVersion [get]
int FirstMinorVersion [get]
int FirstMajorVersion [get]
String ProductId [get]

Private Member Functions

void Init (byte[] enc_lic, byte[] signature)
void Validate ()
bool ParseKey (String v)

Private Attributes

String product_id = null
bool is_valid = false
bool is_key_valid = false
String key = null
int first_major_version = 0
int first_minor_version = 0
int last_major_version = 0
int last_minor_version = 0
int vendor_id = 0
int customer_id = 0
String access_level = null
int access_level_data = 0
DateTime grant_date
DateTime expiry_date
String consumption_type = null
int consumption_level = 0
bool is_trial_license = false
bool is_volatile = false
Core.Interfaces.ISecurityManager local_signatory = null
Core.Interfaces.ISecurityManager local_cipher = null
bool have_signatory = false
bool is_expired = false
bool is_single_license = false
bool is_multi_license = false
bool is_unrestricted_license = false
int remaining_consumption = 0
byte[] encoded_license = new byte[0]
byte[] license_signature = new byte[0]

Static Private Attributes

static
System.Text.RegularExpressions.Regex 
KEY_EXPR = new System.Text.RegularExpressions.Regex("^(\\S{3})-(\\d{4})(\\d{4})-(\\d{4})-(\\d{6})-(\\S{3})-(\\d{3})-(\\d{8})-(\\d{8})-(\\S{1})-(\\d{3})")
static int KEY_LENGTH = 56


Detailed Description

Summary description for License.


Constructor & Destructor Documentation

Core.Tools.License.License.License ( Core.Interfaces.ISecurityManager  signatory,
Core.Interfaces.ISecurityManager  cipher,
byte[]  enc_lic,
byte[]  signature 
)

Core.Tools.License.License.License ( byte[]  enc_lic,
byte[]  signature 
)


Member Function Documentation

void Core.Tools.License.License.Init ( byte[]  enc_lic,
byte[]  signature 
) [private]

void Core.Tools.License.License.Validate (  )  [private]

static bool Core.Tools.License.License.ValidateLicenseFormat ( String  v  )  [static]

String Core.Tools.License.License.ToPublicString (  ) 

override String Core.Tools.License.License.ToString (  ) 

bool Core.Tools.License.License.ParseKey ( String  v  )  [private]


Member Data Documentation

System.Text.RegularExpressions.Regex Core.Tools.License.License.KEY_EXPR = new System.Text.RegularExpressions.Regex("^(\\S{3})-(\\d{4})(\\d{4})-(\\d{4})-(\\d{6})-(\\S{3})-(\\d{3})-(\\d{8})-(\\d{8})-(\\S{1})-(\\d{3})") [static, private]

String Core.Tools.License.License.product_id = null [private]

bool Core.Tools.License.License.is_valid = false [private]

String Core.Tools.License.License.key = null [private]

int Core.Tools.License.License.KEY_LENGTH = 56 [static, private]

String Core.Tools.License.License.access_level = null [private]

bool Core.Tools.License.License.is_expired = false [private]

byte [] Core.Tools.License.License.encoded_license = new byte[0] [private]

byte [] Core.Tools.License.License.license_signature = new byte[0] [private]


Property Documentation

int Core.Tools.License.License.RemainingConsumption [get]

bool Core.Tools.License.License.IsUnrestrictedLicense [get]

bool Core.Tools.License.License.IsMultiLicense [get]

bool Core.Tools.License.License.IsSingleLicense [get]

bool Core.Tools.License.License.IsExpired [get]

byte [] Core.Tools.License.License.LicenseSignature [get]

byte [] Core.Tools.License.License.EncodedLicense [get]

bool Core.Tools.License.License.HaveSignatory [get]

bool Core.Tools.License.License.IsTrial [get]

bool Core.Tools.License.License.IsVolatile [get]

bool Core.Tools.License.License.IsKeyValid [get]

bool Core.Tools.License.License.IsValid [get]

int Core.Tools.License.License.ConsumptionLevel [get]

String Core.Tools.License.License.ConsumptionType [get]

DateTime Core.Tools.License.License.GrantDate [get]

DateTime Core.Tools.License.License.ExpiryDate [get]

int Core.Tools.License.License.AccessLevelData [get]

String Core.Tools.License.License.AccessLevel [get]

int Core.Tools.License.License.CustomerId [get]

int Core.Tools.License.License.VendorId [get]

int Core.Tools.License.License.LastMinorVersion [get]

int Core.Tools.License.License.LastMajorVersion [get]

int Core.Tools.License.License.FirstMinorVersion [get]

int Core.Tools.License.License.FirstMajorVersion [get]

String Core.Tools.License.License.ProductId [get]


The documentation for this class was generated from the following file:
Stephen W. Cote, 2009, whitefrost.com