C# Class FiftyOne.Foundation.Licence.Key

Encapsulates a licence key.
Afficher le fichier Open project: 51Degrees/dotNET-Device-Detection

Protected Properties

Свойство Type Description
_endDateOffset ushort
_products List
_startDateOffset ushort

Méthodes publiques

Méthode Description
Key ( String encodedText ) : System

Constructs a new Key instance.

ToArray ( ) : byte[]

Persists data about the Licence. Writer attached to an output stream for data storage.

ToString ( ) : string

Returns the encoded text for the licence key.

Méthodes protégées

Méthode Description
Convert ( System.DateTime date ) : ushort

Converts a date for internal storage as a ushort.

Key ( ) : System

Used by any subclasses to construct a new Key instance.

Private Methods

Méthode Description
DSAVerifyHash ( byte hashValue, byte signedHashValue, string xmlKeyInfo, string hashAlg ) : bool

Validates the signature that follows the Licence data

Method Details

Convert() protected static méthode

Converts a date for internal storage as a ushort.
protected static Convert ( System.DateTime date ) : ushort
date System.DateTime Date to be converted.
Résultat ushort

Key() protected méthode

Used by any subclasses to construct a new Key instance.
protected Key ( ) : System
Résultat System

Key() public méthode

Constructs a new Key instance.
public Key ( String encodedText ) : System
encodedText String The encoded Licence text.
Résultat System

ToArray() public méthode

Persists data about the Licence. Writer attached to an output stream for data storage.
public ToArray ( ) : byte[]
Résultat byte[]

ToString() public méthode

Returns the encoded text for the licence key.
public ToString ( ) : string
Résultat string

Property Details

_endDateOffset protected_oe property

The offset for the date the licence is valid until.
protected ushort _endDateOffset
Résultat ushort

_products protected_oe property

List of products the key can be used with.
protected List _products
Résultat List

_startDateOffset protected_oe property

The offset for the date the licence is valid from.
protected ushort _startDateOffset
Résultat ushort