SecureEnvironment 클래스

정의

사용자 활성화, 라이선스 바인딩 및 기타 권한 관리 작업에 대한 보안 클라이언트 세션을 나타냅니다.

public ref class SecureEnvironment : IDisposable
[System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)]
public class SecureEnvironment : IDisposable
public class SecureEnvironment : IDisposable
[<System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)>]
type SecureEnvironment = class
    interface IDisposable
type SecureEnvironment = class
    interface IDisposable
Public Class SecureEnvironment
Implements IDisposable
상속
SecureEnvironment
특성
구현

예제

다음 예제에서는 사용 된 SecureEnvironment 클래스

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

설명

다른와 마찬가지로 System.Security.RightsManagement 형식을 SecureEnvironment 완전 신뢰 애플리케이션에만 유용 합니다.

속성

ApplicationManifest

ApplicationManifest를 만들 때 지정된 SecureEnvironment를 가져옵니다.

User

SecureEnvironment를 만들 때 지정된 사용자 또는 사용자 그룹을 가져옵니다.

메서드

Create(String, AuthenticationType, UserActivationMode)

애플리케이션 권한 매니페스트, AuthenticationTypeUserActivationMode를 제공한 보안 클라이언트 세션을 만듭니다.

Create(String, ContentUser)

지정된 권한 매니페스트를 사용하여 지정된 사용자에 대한 보안 클라이언트 세션을 만듭니다.

Dispose()

SecureEnvironment에서 사용하는 모든 리소스를 해제합니다.

Dispose(Boolean)

SecureEnvironment에서 사용하는 관리되지 않는 리소스를 해제하고, 관리되는 리소스를 선택적으로 해제할 수 있습니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetActivatedUsers()

활성화된 사용자의 목록을 반환합니다.

GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
IsUserActivated(ContentUser)

지정된 사용자가 권한 관리 콘텐츠에 액세스하기 위해 활성화되었는지 여부를 나타냅니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
RemoveActivatedUser(ContentUser)

지정된 사용자에 대한 라이선스 정품 인증을 제거합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상