SecurityTokenProvider.GetToken(TimeSpan) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
보안 토큰을 가져옵니다.
public:
System::IdentityModel::Tokens::SecurityToken ^ GetToken(TimeSpan timeout);
public System.IdentityModel.Tokens.SecurityToken GetToken(TimeSpan timeout);
member this.GetToken : TimeSpan -> System.IdentityModel.Tokens.SecurityToken
Public Function GetToken (timeout As TimeSpan) As SecurityToken
매개 변수
반품
SecurityToken 가져올 보안 토큰을 나타내는 값입니다.
설명
GetToken 클라이언트가 SOAP 메시지를 보내고 보안 토큰이 필요할 때 클래스에서 메서드를 호출 ClientCredentials 합니다.
메서드가 GetToken 메서드를 호출합니다 GetTokenCore .
대부분의 경우 timeout 매개 변수는 다음과 같은 SecurityTokenProvider파생 클래스에서 UserNameSecurityTokenProvider 사용되지 않습니다. 그러나 경우에 따라 보안 토큰을 검색하는 데 분산 메시징이 포함됩니다. 예제는 IssuedSecurityTokenProvider 페더레이션된 서비스에서 사용됩니다. 이러한 경우 timeout 매개 변수는 네트워크 오류, 메시지 손실 및 기타 오류 조건으로 인한 예외를 방지하는 데 사용됩니다.