C# 클래스 Dev2.Runtime.Security.RSAKey

A RSA key in base64.
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf

공개 메소드들

메소드 설명
Load ( string filePath ) : RSAKey

Loads an RSAKey from a file.

RSAKey ( ) : System

Initializes a new instance of the RSAKey class with a new RSACryptoServiceProvider.

RSAKey ( ICspAsymmetricAlgorithm csp ) : System

Initializes a new instance of the RSAKey class.

RSAKey ( System.Xml.Linq.XContainer xml ) : System

Initializes a new instance of the RSAKey class.

Save ( string filePath ) : void

Saves this key to the specified file path.

ToCSP ( bool usePrivate ) : RSACryptoServiceProvider

Creates an RSACryptoServiceProvider from this instance.

ToXml ( ) : System.Xml.Linq.XElement

Creates an XML representation of this instance.

메소드 상세

Load() 공개 정적인 메소드

Loads an RSAKey from a file.
public static Load ( string filePath ) : RSAKey
filePath string The file path referencing the file to load into a new .
리턴 RSAKey

RSAKey() 공개 메소드

Initializes a new instance of the RSAKey class with a new RSACryptoServiceProvider.
public RSAKey ( ) : System
리턴 System

RSAKey() 공개 메소드

Initializes a new instance of the RSAKey class.
csp
public RSAKey ( ICspAsymmetricAlgorithm csp ) : System
csp ICspAsymmetricAlgorithm The to be used.
리턴 System

RSAKey() 공개 메소드

Initializes a new instance of the RSAKey class.
xml
public RSAKey ( System.Xml.Linq.XContainer xml ) : System
xml System.Xml.Linq.XContainer The xml represention to be loaded.
리턴 System

Save() 공개 메소드

Saves this key to the specified file path.
public Save ( string filePath ) : void
filePath string The file path to be used.
리턴 void

ToCSP() 공개 메소드

Creates an RSACryptoServiceProvider from this instance.
public ToCSP ( bool usePrivate ) : RSACryptoServiceProvider
usePrivate bool If true uses the key; otherwise uses the key.
리턴 System.Security.Cryptography.RSACryptoServiceProvider

ToXml() 공개 메소드

Creates an XML representation of this instance.
public ToXml ( ) : System.Xml.Linq.XElement
리턴 System.Xml.Linq.XElement