C# Class Brunet.Security.PeerSec.SecurityPolicy

Each SP supports a specific SymmetricAlgorithm and HashAlgorithm. This class is thread-safe.
Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Свойство Type Description
Authenticator string
DefaultAuthenticator string
DefaultEncryptor string
DefaultPreExchangedKeys bool
DefaultSPI int
Encryptor string
Index int
PreExchangedKeys bool
_splist SecurityPolicy>.Dictionary
_ssync object

Méthodes publiques

Méthode 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

Méthode Description
SecurityPolicy ( ) : System

Method Details

CreateHashAlgorithm() public méthode

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

CreateSymmetricAlgorithm() public méthode

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

Equals() public méthode

public Equals ( object o ) : bool
o object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetPolicy() public static méthode

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

SecurityPolicy() public méthode

public SecurityPolicy ( int Index, string Encryptor, string Authenticator ) : System
Index int
Encryptor string
Authenticator string
Résultat System

SecurityPolicy() public méthode

public SecurityPolicy ( int Index, string Encryptor, string Authenticator, bool PreExchangedKeys ) : System
Index int
Encryptor string
Authenticator string
PreExchangedKeys bool
Résultat System

SetDefaultSecurityPolicy() public static méthode

public static SetDefaultSecurityPolicy ( string Encryptor, string Authenticator, bool PreExchangedKeys ) : void
Encryptor string
Authenticator string
PreExchangedKeys bool
Résultat void

Supports() public static méthode

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

Property Details

Authenticator public_oe property

The supported HashAlgorithm.
public string Authenticator
Résultat string

DefaultAuthenticator public_oe static_oe property

public static string DefaultAuthenticator
Résultat string

DefaultEncryptor public_oe static_oe property

public static string DefaultEncryptor
Résultat string

DefaultPreExchangedKeys public_oe static_oe property

public static bool DefaultPreExchangedKeys
Résultat bool

DefaultSPI public_oe static_oe property

public static int DefaultSPI
Résultat int

Encryptor public_oe property

The supported SymmetricAlgorithm.
public string Encryptor
Résultat string

Index public_oe property

The SPI
public int Index
Résultat int

PreExchangedKeys public_oe property

Supports Pre-Exchanged Keys.
public bool PreExchangedKeys
Résultat bool

_splist public_oe static_oe property

public static Dictionary _splist
Résultat SecurityPolicy>.Dictionary

_ssync public_oe static_oe property

public static object _ssync
Résultat object