C# Класс Brunet.Security.PeerSec.SecurityPolicy

Each SP supports a specific SymmetricAlgorithm and HashAlgorithm. This class is thread-safe.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Authenticator string
DefaultAuthenticator string
DefaultEncryptor string
DefaultPreExchangedKeys bool
DefaultSPI int
Encryptor string
Index int
PreExchangedKeys bool
_splist SecurityPolicy>.Dictionary
_ssync object

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

Метод Описание
CreateHashAlgorithm ( ) : HashAlgorithm

Creates a HashAlgorithm used by this SPI.

CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm

Creates a SymmetricAlgorithm used by this SPI.

Equals ( object o ) : bool
GetHashCode ( ) : int
GetPolicy ( int Index ) : SecurityPolicy

Returns a SP object that can be used to create SymmetricAlgorithm and HashAlgorithm objects.

SecurityPolicy ( int Index, string Encryptor, string Authenticator ) : System
SecurityPolicy ( int Index, string Encryptor, string Authenticator, bool PreExchangedKeys ) : System
SetDefaultSecurityPolicy ( string Encryptor, string Authenticator, bool PreExchangedKeys ) : void
Supports ( int Index ) : bool

Returns true if the SPI is supported, false otherwise.

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

Метод Описание
SecurityPolicy ( ) : System

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

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

Creates a HashAlgorithm used by this SPI.
public CreateHashAlgorithm ( ) : HashAlgorithm
Результат System.Security.Cryptography.HashAlgorithm

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

Creates a SymmetricAlgorithm used by this SPI.
public CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm
Результат System.Security.Cryptography.SymmetricAlgorithm

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

public Equals ( object o ) : bool
o object
Результат bool

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

public GetHashCode ( ) : int
Результат int

GetPolicy() публичный статический Метод

Returns a SP object that can be used to create SymmetricAlgorithm and HashAlgorithm objects.
public static GetPolicy ( int Index ) : SecurityPolicy
Index int
Результат SecurityPolicy

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

public SecurityPolicy ( int Index, string Encryptor, string Authenticator ) : System
Index int
Encryptor string
Authenticator string
Результат System

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

public SecurityPolicy ( int Index, string Encryptor, string Authenticator, bool PreExchangedKeys ) : System
Index int
Encryptor string
Authenticator string
PreExchangedKeys bool
Результат System

SetDefaultSecurityPolicy() публичный статический Метод

public static SetDefaultSecurityPolicy ( string Encryptor, string Authenticator, bool PreExchangedKeys ) : void
Encryptor string
Authenticator string
PreExchangedKeys bool
Результат void

Supports() публичный статический Метод

Returns true if the SPI is supported, false otherwise.
public static Supports ( int Index ) : bool
Index int
Результат bool

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

Authenticator публичное свойство

The supported HashAlgorithm.
public string Authenticator
Результат string

DefaultAuthenticator публичное статическое свойство

public static string DefaultAuthenticator
Результат string

DefaultEncryptor публичное статическое свойство

public static string DefaultEncryptor
Результат string

DefaultPreExchangedKeys публичное статическое свойство

public static bool DefaultPreExchangedKeys
Результат bool

DefaultSPI публичное статическое свойство

public static int DefaultSPI
Результат int

Encryptor публичное свойство

The supported SymmetricAlgorithm.
public string Encryptor
Результат string

Index публичное свойство

The SPI
public int Index
Результат int

PreExchangedKeys публичное свойство

Supports Pre-Exchanged Keys.
public bool PreExchangedKeys
Результат bool

_splist публичное статическое свойство

public static Dictionary _splist
Результат SecurityPolicy>.Dictionary

_ssync публичное статическое свойство

public static object _ssync
Результат object