IAuthenticationModule.AuthenticationType 속성

정의

이 인증 모듈에서 제공한 인증 형식을 가져옵니다.

public:
 property System::String ^ AuthenticationType { System::String ^ get(); };
public string AuthenticationType { get; }
member this.AuthenticationType : string
Public ReadOnly Property AuthenticationType As String

속성 값

String

이 인증 모듈에서 제공하는 인증 형식을 나타내는 문자열입니다.

예제

다음 예제에서는 AuthenticationType 속성을 사용하는 방법을 보여 줍니다. 전체 예제는 클래스를 참조하세요 AuthenticationManager .

   String^ m_authenticationType;
   bool m_canPreAuthenticate;

public:

   // The CustomBasic constructor initializes the properties of the customized
   // authentication.
   CustomBasic()
   {
      m_authenticationType = "Basic";
      m_canPreAuthenticate = false;
   }


   property String^ AuthenticationType 
   {

      // Define the authentication type. This type is then used to identify this
      // custom authentication module. The default is set to Basic.
      virtual String^ get()
      {
         return m_authenticationType;
      }

   }

   property bool CanPreAuthenticate 
   {

      // Define the pre-authentication capabilities for the module. The default is set
      // to false.
      virtual bool get()
      {
         return m_canPreAuthenticate;
      }

   }
private string m_authenticationType ;
private bool m_canPreAuthenticate ;

// The CustomBasic constructor initializes the properties of the customized
// authentication.
public CustomBasic()
{
  m_authenticationType = "Basic";
  m_canPreAuthenticate = false;
}

// Define the authentication type. This type is then used to identify this
// custom authentication module. The default is set to Basic.
public string AuthenticationType
{
  get
  {
    return m_authenticationType;
  }
}

// Define the pre-authentication capabilities for the module. The default is set
// to false.
public bool CanPreAuthenticate
{
  get
  {
    return m_canPreAuthenticate;
  }
}
Private m_authenticationType As String
Private m_canPreAuthenticate As Boolean


' The CustomBasic constructor initializes the properties of the customized 
' authentication.
Public Sub New()
  m_authenticationType = "Basic"
  m_canPreAuthenticate = False
End Sub

' Define the authentication type. This type is then used to identify this
' custom authentication module. The default is set to Basic.

Public ReadOnly Property AuthenticationType() As String _
 Implements IAuthenticationModule.AuthenticationType

  Get
    Return m_authenticationType
  End Get
End Property

' Define the pre-authentication capabilities for the module. The default is set
' to false.

Public ReadOnly Property CanPreAuthenticate() As Boolean _
 Implements IAuthenticationModule.CanPreAuthenticate


  Get
    Return m_canPreAuthenticate
  End Get
End Property

설명

이 속성은 이 AuthenticationType 인증 모듈에서 구현하는 인증 유형을 식별합니다. 이 AuthenticationType 속성은 인증 모듈이 AuthenticationManager.Register 등록되었는지 여부를 확인하는 메서드와 등록된 인증 모듈을 AuthenticationManager.Unregister 제거하는 메서드에서 사용됩니다.

적용 대상