C# 클래스 FiftyOne.Foundation.Licence.Key

Encapsulates a licence key.
파일 보기 프로젝트 열기: 51Degrees/dotNET-Device-Detection

보호된 프로퍼티들

프로퍼티 타입 설명
_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