EncryptionProvider Interface
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.
Provides the methods for setting up permissions, applying the cryptography of the underlying encryption and decryption, and user authentication.
public interface class EncryptionProvider
[System.Runtime.InteropServices.Guid("000CD809-0000-0000-C000-000000000046")]
public interface EncryptionProvider
[<System.Runtime.InteropServices.Guid("000CD809-0000-0000-C000-000000000046")>]
type EncryptionProvider = interface
Public Interface EncryptionProvider
- Attributes
Remarks
Encryption providers are implemented through custom COM add-ins. You are provided with storage within Office documents for add-in specific information to store whatever information you need to encrypt, decrypt, apply rights, and display permission setup or authentication user interfaces.
Methods
Authenticate(Object, Object, UInt32) |
Used to determine whether the user has the proper permissions to open the encrypted document. |
CloneSession(Int32) |
Creates a second, working copy of the EncryptionProvider object’s encryption session for a file that is about to be saved. |
DecryptStream(Int32, String, Object, Object) |
Decrypts and returns a stream of encrypted data for a document. |
EncryptStream(Int32, String, Object, Object) |
Encrypts and returns a stream of data for a document. |
EndSession(Int32) |
Ends the current encryption session. |
GetProviderDetail(EncryptionProviderDetail) |
Displays information about the encryption of the current document. |
NewSession(Object) |
Used by the EncryptionProvider object to create a new encryption session. This session is used by the provider to cache document-specific information about the encryption, users, and rights while the document is in memory. |
Save(Int32, Object) |
Saves an encrypted document. |
ShowSettings(Int32, Object, Boolean, Boolean) |
Used to display a dialog of the encryption settings for the current document. |
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기