Export (0) Print
Expand All
3 out of 4 rated this helpful - Rate this topic

CspParameters Class

Contains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.

System.Object
  System.Security.Cryptography.CspParameters

Namespace:  System.Security.Cryptography
Assembly:  mscorlib.Extensions (in mscorlib.Extensions.dll)
public sealed class CspParameters

The CspParameters type exposes the following members.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneCspParameters()Initializes a new instance of the CspParameters class.
Public methodSupported by Silverlight for Windows PhoneCspParameters(Int32)Initializes a new instance of the CspParameters class with the specified provider type code.
Public methodSupported by Silverlight for Windows PhoneCspParameters(Int32, String)Initializes a new instance of the CspParameters class with the specified provider type code and name.
Public methodSupported by Silverlight for Windows PhoneCspParameters(Int32, String, String)Initializes a new instance of the CspParameters class with the specified provider type code and name, and the specified container name.
Top
  NameDescription
Public propertySupported by Silverlight for Windows PhoneFlagsRepresents the flags for CspParameters that modify the behavior of the cryptographic service provider (CSP).
Top
  NameDescription
Public methodSupported by Silverlight for Windows PhoneEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public fieldSupported by Silverlight for Windows PhoneKeyContainerNameRepresents the key container name for CspParameters.
Public fieldSupported by Silverlight for Windows PhoneKeyNumberSpecifies whether an asymmetric key is created as a signature key or an exchange key.
Public fieldSupported by Silverlight for Windows PhoneProviderNameRepresents the provider name for CspParameters.
Public fieldSupported by Silverlight for Windows PhoneProviderTypeRepresents the provider type code for CspParameters.
Top

The CspParameters class represents parameters that you can pass to managed cryptography classes that internally use Microsoft Cryptographic Service Providers (CSPs) from the unmanaged Microsoft Cryptography API (CAPI). Classes with names ending in "CryptoServiceProvider" are managed code wrappers for the corresponding CSP.

Use the CspParameters class to do the following:

  • Specify a particular CSP by passing the provider type to the ProviderType or ProviderName property. You can also specify a CSP using an overload of the constructor.

  • Create a key container where you can store cryptographic keys. Key containers provide the most secure way to persist cryptographic keys and keep them secret from malicious third parties.

  • Specify whether to create an asymmetric signature key or an asymmetric exchange key using the KeyNumber property.

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.