AuthenticationType Enum

Definition

Specifies the method of rights management authentication.

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

Fields

Internal 3

Implicit authentication to any requesting user.

Passport 1

Windows Live ID authentication.

Windows 0

Windows authentication in a corporate domain environment.

WindowsPassport 2

Either Windows authentication or Windows Live ID authentication.

Examples

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

Remarks

AuthenticationType specifies how users who access rights managed content are to be authenticated.

Internal also provides authentication for the owner and author of a protected document or template.

Applies to

See also