C# Класс FiftyOne.Foundation.Licence.Key

Encapsulates a licence key.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_endDateOffset ushort
_products List
_startDateOffset ushort

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
DSAVerifyHash ( byte hashValue, byte signedHashValue, string xmlKeyInfo, string hashAlg ) : bool

Validates the signature that follows the Licence data

Описание методов

Convert() защищенный статический Метод

Converts a date for internal storage as a ushort.
protected static Convert ( System.DateTime date ) : ushort
date System.DateTime Date to be converted.
Результат ushort

Key() защищенный Метод

Used by any subclasses to construct a new Key instance.
protected Key ( ) : System
Результат System

Key() публичный Метод

Constructs a new Key instance.
public Key ( String encodedText ) : System
encodedText String The encoded Licence text.
Результат System

ToArray() публичный Метод

Persists data about the Licence. Writer attached to an output stream for data storage.
public ToArray ( ) : byte[]
Результат byte[]

ToString() публичный Метод

Returns the encoded text for the licence key.
public ToString ( ) : string
Результат string

Описание свойств

_endDateOffset защищенное свойство

The offset for the date the licence is valid until.
protected ushort _endDateOffset
Результат ushort

_products защищенное свойство

List of products the key can be used with.
protected List _products
Результат List

_startDateOffset защищенное свойство

The offset for the date the licence is valid from.
protected ushort _startDateOffset
Результат ushort