AuthenticationType Wyliczenie

Definicja

Określa metodę uwierzytelniania usługi Rights Management.

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

Pola

Internal 3

Niejawne uwierzytelnianie do dowolnego użytkownika wysyłającego żądanie.

Passport 1

Uwierzytelnianie za pomocą identyfikatora Windows Live ID.

Windows 0

Uwierzytelnianie systemu Windows w środowisku domeny firmowej.

WindowsPassport 2

Uwierzytelnianie systemu Windows lub uwierzytelnianie za pomocą identyfikatora Windows Live ID.

Przykłady

W poniższym przykładzie pokazano również użycie AuthenticationType wyliczenia.

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

Uwagi

AuthenticationType określa sposób uwierzytelniania użytkowników, którzy uzyskują dostęp do zawartości zarządzanej prawami.

Internal Zapewnia również uwierzytelnianie właściciela i autora chronionego dokumentu lub szablonu.

Dotyczy

Zobacz też