指定した SecurityElement から SignatureDescription クラスの新しいインスタンスを初期化します。
名前空間: System.Security.Cryptography
アセンブリ: mscorlib (mscorlib.dll 内)
構文
'宣言
Public Sub New ( _
el As SecurityElement _
)
'使用
Dim el As SecurityElement
Dim instance As New SignatureDescription(el)
public SignatureDescription (
SecurityElement el
)
public:
SignatureDescription (
SecurityElement^ el
)
public SignatureDescription (
SecurityElement el
)
public function SignatureDescription (
el : SecurityElement
)
適用できません。
パラメータ
- el
署名の説明に対するアルゴリズムの取得元の SecurityElement。
例外
例外の種類 | 条件 |
---|---|
el パラメータが null 参照 (Visual Basic では Nothing) です。 |
使用例
新しい SignatureDescription クラスを初期化する方法を次のコード例に示します。
4 つのアルゴリズムを含む SecurityElement。このコード例は、SignatureDescription クラスのトピックで取り上げているコード例の一部分です。
Dim securityElement As New SecurityElement("DSASignature")
' Create new security elements for the four algorithms.
securityElement.AddChild(new SecurityElement( _
"Key", _
"System.Security.Cryptography.DSACryptoServiceProvider"))
securityElement.AddChild(New SecurityElement( _
"Digest", _
"System.Security.Cryptography.SHA1CryptoServiceProvider"))
securityElement.AddChild(new SecurityElement( _
"Formatter", _
"System.Security.Cryptography.DSASignatureFormatter"))
securityElement.AddChild(new SecurityElement( _
"Deformatter", _
"System.Security.Cryptography.DSASignatureDeformatter"))
Dim signatureDescription As New SignatureDescription(securityElement)
SecurityElement securityElement = new SecurityElement("DSASignature");
// Create new security elements for the four algorithms.
securityElement.AddChild(new SecurityElement(
"Key",
"System.Security.Cryptography.DSACryptoServiceProvider"));
securityElement.AddChild(new SecurityElement(
"Digest",
"System.Security.Cryptography.SHA1CryptoServiceProvider"));
securityElement.AddChild(new SecurityElement(
"Formatter",
"System.Security.Cryptography.DSASignatureFormatter"));
securityElement.AddChild(new SecurityElement(
"Deformatter",
"System.Security.Cryptography.DSASignatureDeformatter"));
SignatureDescription signatureDescription =
new SignatureDescription(securityElement);
SecurityElement^ securityElement = gcnew SecurityElement( L"DSASignature" );
// Create new security elements for the four algorithms.
securityElement->AddChild( gcnew SecurityElement(
L"Key",L"System.Security.Cryptography.DSACryptoServiceProvider" ) );
securityElement->AddChild( gcnew SecurityElement(
L"Digest",L"System.Security.Cryptography.SHA1CryptoServiceProvider" ) );
securityElement->AddChild( gcnew SecurityElement(
L"Formatter",L"System.Security.Cryptography.DSASignatureFormatter" ) );
securityElement->AddChild( gcnew SecurityElement(
L"Deformatter",L"System.Security.Cryptography.DSASignatureDeformatter" ) );
SignatureDescription^ signatureDescription =
gcnew SignatureDescription( securityElement );
SecurityElement securityElement = new SecurityElement("DSASignature");
// Create new security elements for the four algorithms.
securityElement.AddChild(new SecurityElement("Key",
"System.Security.Cryptography.DSACryptoServiceProvider"));
securityElement.AddChild(new SecurityElement("Digest",
"System.Security.Cryptography.SHA1CryptoServiceProvider"));
securityElement.AddChild(new SecurityElement("Formatter",
"System.Security.Cryptography.DSASignatureFormatter"));
securityElement.AddChild(new SecurityElement("Deformatter",
"System.Security.Cryptography.DSASignatureDeformatter"));
SignatureDescription signatureDescription
= new SignatureDescription(securityElement);
プラットフォーム
Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。
バージョン情報
.NET Framework
サポート対象 : 3.0,2.0,1.1,1.0
参照
関連項目
SignatureDescription クラス
SignatureDescription メンバ
System.Security.Cryptography 名前空間