EncryptionProvider.Authenticate Method
Used to determine whether the user has the proper permissions to open the encrypted document.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Function Authenticate ( _
ParentWindow As Object, _
EncryptionData As Object, _
<OutAttribute> ByRef PermissionsMask As UInteger _
) As Integer
'Usage
Dim instance As EncryptionProvider
Dim ParentWindow As Object
Dim EncryptionData As Object
Dim PermissionsMask As UInteger
Dim returnValue As Integer
returnValue = instance.Authenticate(ParentWindow, _
EncryptionData, PermissionsMask)
int Authenticate(
Object ParentWindow,
Object EncryptionData,
out uint PermissionsMask
)
Parameters
ParentWindow
Type: System.ObjectSpecifies the window that is called to display the encryption settings.
EncryptionData
Type: System.ObjectContains the encrypted data for the current document.
PermissionsMask
Type: System.UInt32The user interface displayed by the encryption provider add-in.
Return Value
Type: System.Int32
Integer
Remarks
This is where your COM add-in encryption provider displays whatever user interface is applicable for applying encryption. For example, a password encryption provider would prompt for the user's password.