AuthenticationType Enum

Definition

Specifies the method of rights management authentication.

C#
public enum AuthenticationType
Inheritance
AuthenticationType

Fields

Name Value Description
Windows 0

Windows authentication in a corporate domain environment.

Passport 1

Windows Live ID authentication.

WindowsPassport 2

Either Windows authentication or Windows Live ID authentication.

Internal 3

Implicit authentication to any requesting user.

Examples

The following example also shows use of the AuthenticationType enumeration.

C#
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);
    }
}

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

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also