C# Class Brunet.Security.PeerSec.SecurityPolicy

Each SP supports a specific SymmetricAlgorithm and HashAlgorithm. This class is thread-safe.
ファイルを表示 Open project: pstjuste/brunet Class Usage Examples

Public Properties

Property Type Description
Authenticator string
DefaultAuthenticator string
DefaultEncryptor string
DefaultPreExchangedKeys bool
DefaultSPI int
Encryptor string
Index int
PreExchangedKeys bool
_splist SecurityPolicy>.Dictionary
_ssync object

Public Methods

Method Description
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.

Private Methods

Method Description
SecurityPolicy ( ) : System

Method Details

CreateHashAlgorithm() public method

Creates a HashAlgorithm used by this SPI.
public CreateHashAlgorithm ( ) : HashAlgorithm
return System.Security.Cryptography.HashAlgorithm

CreateSymmetricAlgorithm() public method

Creates a SymmetricAlgorithm used by this SPI.
public CreateSymmetricAlgorithm ( ) : SymmetricAlgorithm
return System.Security.Cryptography.SymmetricAlgorithm

Equals() public method

public Equals ( object o ) : bool
o object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetPolicy() public static method

Returns a SP object that can be used to create SymmetricAlgorithm and HashAlgorithm objects.
public static GetPolicy ( int Index ) : SecurityPolicy
Index int
return SecurityPolicy

SecurityPolicy() public method

public SecurityPolicy ( int Index, string Encryptor, string Authenticator ) : System
Index int
Encryptor string
Authenticator string
return System

SecurityPolicy() public method

public SecurityPolicy ( int Index, string Encryptor, string Authenticator, bool PreExchangedKeys ) : System
Index int
Encryptor string
Authenticator string
PreExchangedKeys bool
return System

SetDefaultSecurityPolicy() public static method

public static SetDefaultSecurityPolicy ( string Encryptor, string Authenticator, bool PreExchangedKeys ) : void
Encryptor string
Authenticator string
PreExchangedKeys bool
return void

Supports() public static method

Returns true if the SPI is supported, false otherwise.
public static Supports ( int Index ) : bool
Index int
return bool

Property Details

Authenticator public_oe property

The supported HashAlgorithm.
public string Authenticator
return string

DefaultAuthenticator public_oe static_oe property

public static string DefaultAuthenticator
return string

DefaultEncryptor public_oe static_oe property

public static string DefaultEncryptor
return string

DefaultPreExchangedKeys public_oe static_oe property

public static bool DefaultPreExchangedKeys
return bool

DefaultSPI public_oe static_oe property

public static int DefaultSPI
return int

Encryptor public_oe property

The supported SymmetricAlgorithm.
public string Encryptor
return string

Index public_oe property

The SPI
public int Index
return int

PreExchangedKeys public_oe property

Supports Pre-Exchanged Keys.
public bool PreExchangedKeys
return bool

_splist public_oe static_oe property

public static Dictionary _splist
return SecurityPolicy>.Dictionary

_ssync public_oe static_oe property

public static object _ssync
return object