Pkcs12Builder.AddSafeContentsUnencrypted(Pkcs12SafeContents) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Add contents to the PFX without encrypting them.
public:
void AddSafeContentsUnencrypted(System::Security::Cryptography::Pkcs::Pkcs12SafeContents ^ safeContents);
public void AddSafeContentsUnencrypted (System.Security.Cryptography.Pkcs.Pkcs12SafeContents safeContents);
member this.AddSafeContentsUnencrypted : System.Security.Cryptography.Pkcs.Pkcs12SafeContents -> unit
Public Sub AddSafeContentsUnencrypted (safeContents As Pkcs12SafeContents)
Parameters
- safeContents
- Pkcs12SafeContents
The contents to add to the PFX.
Exceptions
The safeContents
parameter is null
.
The PFX is already sealed (IsSealed is true
).
Remarks
If the safeContents
value is already encrypted, this method adds it to the PFX as-is.
The contents of safeContents
are read during the call to this method, and stored internally as the encoded form of their content.
Any changes to the Pkcs12SafeContents or any Pkcs12SafeBag it references made after this method call are not reflected in the final output.