語言

SignedCms 建構函式

定義

初始化 SignedCms 類別的新執行個體。

多載

名稱 Description
SignedCms()

SignedCms()建構子會建立該SignedCms類別的實例。

SignedCms(ContentInfo)

SignedCms(ContentInfo)建構子透過使用指定的內容資訊作為內部內容來建立類別SignedCms的實例。

SignedCms(SubjectIdentifierType)

SignedCms(SubjectIdentifierType)建構子透過使用指定的主體識別碼類型作為簽署者的預設主體識別碼類型來建立該SignedCms類別的實例。

SignedCms(ContentInfo, Boolean)

SignedCms(ContentInfo, Boolean)建構子透過使用指定的內容資訊作為內部內容,並使用分離狀態來建立該SignedCms類別的實例。

SignedCms(SubjectIdentifierType, ContentInfo)

SignedCms(SubjectIdentifierType, ContentInfo)建構子透過使用指定的主體識別碼類型作為簽署者的預設主體識別碼類型,並將內容資訊作為內部內容,來建立類別SignedCms的實例。

SignedCms(SubjectIdentifierType, ContentInfo, Boolean)

SignedCms(SubjectIdentifierType, ContentInfo, Boolean)建構子透過使用指定的主體識別碼類型作為簽署者的預設主體識別碼類型,將內容資訊作為內部內容,並使用分離狀態來建立該SignedCms類別的實例。

SignedCms()

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms()建構子會建立該SignedCms類別的實例。

public:
 SignedCms();
public SignedCms();
Public Sub New ()

例外狀況

一個空引用被傳遞給一個不接受該參數為有效參數的方法。

備註

該 SignedCms 類別具有以下預設屬性值。

房產 預設值
ContentInfo 1.2.840.113549.1.7.1(資料)長度:零
Detached 分離狀態: false 簽署的內容與簽章資訊一同包含在 CMS/PKCS #7 訊息中。

簽署者的預設 SubjectIdentifierType 為 SubjectIdentifierType.IssuerAndSerialNumber。

若分離狀態為 false 預設狀態,則簽署內容會與簽章資訊一同包含在 CMS/PKCS #7 訊息中。 如果分離狀態為 true,無法解碼 S/MIME 訊息的用戶端仍能看到訊息內容,即使該訊息是分開傳送的。 這在用於存檔訊息內容的應用程式中可能有用,該應用程式會根據訊息發送者是否能被驗證真實性而進行封存。

適用於

SignedCms(ContentInfo)

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms(ContentInfo)建構子透過使用指定的內容資訊作為內部內容來建立類別SignedCms的實例。

public:
 SignedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo);
public SignedCms(System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (contentInfo As ContentInfo)

參數

contentInfo
ContentInfo

一個 ContentInfo 物件,將內容資訊指定為訊息的內部內容 SignedCms 。

例外狀況

一個空引用被傳遞給一個不接受該參數為有效參數的方法。

備註

關於使用此建構子所使用的預設屬性值,請參見 SignedCms()。

若分離狀態為 false 預設狀態,則簽署的內容會與簽章資訊一同包含在 CMS/PKCS #7 訊息中。 如果分離狀態為 true,無法解碼 S/MIME 訊息的用戶端仍能看到訊息內容,即使該訊息是分開傳送的。 這在存檔應用程式中可能很有用,該應用程式會封存訊息內容,判斷訊息發送者是否能被驗證真實性。

適用於

SignedCms(SubjectIdentifierType)

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms(SubjectIdentifierType)建構子透過使用指定的主體識別碼類型作為簽署者的預設主體識別碼類型來建立該SignedCms類別的實例。

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType);
public SignedCms(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType)

參數

signerIdentifierType
SubjectIdentifierType

一個 SubjectIdentifierType 成員指定簽署者預設的主體識別碼類型。

例外狀況

一個空引用被傳遞給一個不接受該參數為有效參數的方法。

備註

關於使用此建構子所使用的預設屬性值,請參見 SignedCms()。

若分離狀態為 false 預設狀態,則簽署的內容會與簽章資訊一同包含在 CMS/PKCS #7 訊息中。 如果分離狀態為 true,無法解碼 S/MIME 訊息的用戶端仍能看到訊息內容,即使該訊息是分開傳送的。 這在存檔應用程式中可能很有用,該應用程式會封存訊息內容,判斷訊息發送者是否能被驗證真實性。

適用於

SignedCms(ContentInfo, Boolean)

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms(ContentInfo, Boolean)建構子透過使用指定的內容資訊作為內部內容,並使用分離狀態來建立該SignedCms類別的實例。

public:
 SignedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo, bool detached);
public SignedCms(System.Security.Cryptography.Pkcs.ContentInfo contentInfo, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (contentInfo As ContentInfo, detached As Boolean)

參數

contentInfo
ContentInfo

一個 ContentInfo 物件,將內容資訊指定為訊息的內部內容 SignedCms 。

detached
Boolean

一個 Boolean 指定物件是否 SignedCms 屬於分離簽名的值。 若 detached , true則簽名為脫離。 若 detached , false則簽名並非脫離。

例外狀況

一個空引用被傳遞給一個不接受該參數為有效參數的方法。

備註

關於使用此建構子所使用的預設屬性值,請參見 SignedCms()。

若分離狀態為 false 預設狀態,則簽署的內容會與簽章資訊一同包含在 CMS/PKCS #7 訊息中。 如果分離狀態為 true,無法解碼 S/MIME 訊息的用戶端仍能看到訊息內容,即使該訊息是分開傳送的。 這在存檔應用程式中可能很有用,該應用程式會封存訊息內容,判斷訊息發送者是否能被驗證真實性。

適用於

SignedCms(SubjectIdentifierType, ContentInfo)

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms(SubjectIdentifierType, ContentInfo)建構子透過使用指定的主體識別碼類型作為簽署者的預設主體識別碼類型,並將內容資訊作為內部內容,來建立類別SignedCms的實例。

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo);
public SignedCms(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType, contentInfo As ContentInfo)

參數

signerIdentifierType
SubjectIdentifierType

一個 SubjectIdentifierType 成員指定簽署者預設的主體識別碼類型。

contentInfo
ContentInfo

一個 ContentInfo 物件,將內容資訊指定為訊息的內部內容 SignedCms 。

例外狀況

一個空引用被傳遞給一個不接受該參數為有效參數的方法。

備註

關於使用此建構子所使用的預設屬性值,請參見 SignedCms()。

若分離狀態為 false 預設狀態,則簽署的內容會與簽章資訊一同包含在 CMS/PKCS #7 訊息中。 如果分離狀態為 true,無法解碼 S/MIME 訊息的用戶端仍能看到訊息內容,即使該訊息是分開傳送的。 這在存檔應用程式中可能很有用,該應用程式會封存訊息內容,判斷訊息發送者是否能被驗證真實性。

適用於

SignedCms(SubjectIdentifierType, ContentInfo, Boolean)

來源:
SignedCms.cs
來源:
SignedCms.cs
來源:
SignedCms.cs
來源:
SignedCms.cs
來源:
SignedCms.cs
來源:
SignedCms.cs
來源:
SignedCms.cs
來源:
SignedCms.cs
來源:
SignedCms.cs

SignedCms(SubjectIdentifierType, ContentInfo, Boolean)建構子透過使用指定的主體識別碼類型作為簽署者的預設主體識別碼類型,將內容資訊作為內部內容,並使用分離狀態來建立該SignedCms類別的實例。

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo, bool detached);
public SignedCms(System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType, contentInfo As ContentInfo, detached As Boolean)

參數

signerIdentifierType
SubjectIdentifierType

一個 SubjectIdentifierType 成員指定簽署者預設的主體識別碼類型。

contentInfo
ContentInfo

一個 ContentInfo 物件,將內容資訊指定為訊息的內部內容 SignedCms 。

detached
Boolean

一個 Boolean 指定物件是否 SignedCms 屬於分離簽名的值。 若 detached , true則簽名為脫離。 若 分離為 false,則簽名並非分離。

例外狀況

一個空引用被傳遞給一個不接受該參數為有效參數的方法。

備註

若分離狀態為 false 預設狀態,則簽署的內容會與簽章資訊一同包含在 CMS/PKCS #7 訊息中。 如果分離狀態為 true,無法解碼 S/MIME 訊息的用戶端仍能看到訊息內容,即使該訊息是分開傳送的。 這對於存檔應用程式來說很有用,無論訊息發送者是否能被驗證真實性。

適用於