編輯

共用方式為


EncryptionProvider Interface

Definition

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