AuthenticationType Enum

Definitie

Hiermee geeft u de methode van rights management-verificatie.

public enum class AuthenticationType
public enum AuthenticationType
type AuthenticationType = 
Public Enum AuthenticationType
Overname
AuthenticationType

Velden

Name Waarde Description
Windows 0

Windows authentication in een bedrijfsdomeinomgeving.

Passport 1

Windows Live ID-verificatie.

WindowsPassport 2

Verificatie via Windows authentication of Windows Live ID.

Internal 3

Impliciete verificatie voor elke gebruiker die een aanvraag indient.

Voorbeelden

In het volgende voorbeeld ziet u ook het gebruik van de AuthenticationType opsomming.

string applicationManifest = "<manifest></manifest>";
if (File.Exists("rpc.xml"))
{
    StreamReader manifestReader = File.OpenText("rpc.xml");
    applicationManifest = manifestReader.ReadToEnd();
}

if (_secureEnv == null)
{
    if (SecureEnvironment.IsUserActivated(new ContentUser(
                _currentUserId, AuthenticationType.Windows)))
    {
        _secureEnv = SecureEnvironment.Create(
            applicationManifest, new ContentUser(
                _currentUserId, AuthenticationType.Windows));
    }
    else
    {
        _secureEnv = SecureEnvironment.Create(
            applicationManifest,
            AuthenticationType.Windows,
            UserActivationMode.Permanent);
    }
}
Dim applicationManifest As String = "<manifest></manifest>"
If File.Exists("rpc.xml") Then
    Dim manifestReader As StreamReader = File.OpenText("rpc.xml")
    applicationManifest = manifestReader.ReadToEnd()
End If

If _secureEnv Is Nothing Then
    If SecureEnvironment.IsUserActivated(New ContentUser(_currentUserId, AuthenticationType.Windows)) Then
        _secureEnv = SecureEnvironment.Create(applicationManifest, New ContentUser(_currentUserId, AuthenticationType.Windows))
    Else
        _secureEnv = SecureEnvironment.Create(applicationManifest, AuthenticationType.Windows, UserActivationMode.Permanent)
    End If
End If

Opmerkingen

AuthenticationType hiermee geeft u op hoe gebruikers die toegang hebben tot door rechten beheerde inhoud moeten worden geverifieerd.

Internal biedt ook verificatie voor de eigenaar en auteur van een beveiligd document of sjabloon.

Van toepassing op

Zie ook