AuthenticationType AuthenticationType AuthenticationType AuthenticationType Enum

Definizione

Specifica il metodo di autenticazione Rights Management.Specifies the method of rights management authentication.

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

Campi

Internal Internal Internal Internal 3

Autenticazione implicita per qualsiasi utente richiedente.Implicit authentication to any requesting user.

Passport Passport Passport Passport 1

Autenticazione Windows Live IDWindows Live ID.Windows Live IDWindows Live ID authentication.

Windows Windows Windows Windows 0

Autenticazione WINDOWSWindows in un ambiente di dominio aziendale.WINDOWSWindows authentication in a corporate domain environment.

WindowsPassport WindowsPassport WindowsPassport WindowsPassport 2

Autenticazione di Windows o Windows Live IDWindows Live ID.Either Windows authentication or Windows Live IDWindows Live ID authentication.

Esempi

Nell'esempio seguente mostra anche l'uso del AuthenticationType enumerazione.The following example also shows use of the AuthenticationType enumeration.

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 come gli utenti che accedono a contenuto rights Management da autenticare.AuthenticationType specifies how users who access rights managed content are to be authenticated.

Internal fornisce inoltre l'autenticazione per il proprietario e l'autore di un documento protetto o un modello.Internal also provides authentication for the owner and author of a protected document or template.

Si applica a

Vedi anche