Method VerifyWriteProtection
- Namespace
- DocWright.Cryptography
- Assembly
- DocWright.Cryptography.dll
VerifyWriteProtection(DocumentProtection, string, ResourceLimits?)
Checks a password against the write-protection hash a document records.
public static bool VerifyWriteProtection(DocumentProtection protection, string password, ResourceLimits? limits = null)
Parameters
protectionDocumentProtectionThe protection settings.
passwordstringThe password to check.
limitsResourceLimitsThe resource caps, or null for the defaults.
Returns
Exceptions
- ArgumentNullException
An argument is null.