AuthenticationType Enumerazione

Definizione

Specifica il metodo di autenticazione Rights Management.

public enum class AuthenticationType
public enum AuthenticationType
type AuthenticationType = 
Public Enum AuthenticationType
Ereditarietà
AuthenticationType

Campi

Internal 3

Autenticazione implicita per qualsiasi utente richiedente.

Passport 1

Windows l'autenticazione live ID.

Windows 0

autenticazione di Windows in un ambiente di dominio aziendale.

WindowsPassport 2

Autenticazione autenticazione di Windows o Windows Live ID.

Esempio

Nell'esempio seguente viene illustrato anche l'uso dell'enumerazione AuthenticationType .

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

Commenti

AuthenticationType specifica il modo in cui gli utenti che accedono al contenuto gestito dai diritti devono essere autenticati.

Internal fornisce anche l'autenticazione per il proprietario e l'autore di un documento o un modello protetto.

Si applica a

Vedi anche