SecurityTokenService.GetTokenLifetime(Lifetime) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
발행된 토큰의 수명을 가져옵니다.
protected:
virtual System::IdentityModel::Protocols::WSTrust::Lifetime ^ GetTokenLifetime(System::IdentityModel::Protocols::WSTrust::Lifetime ^ requestLifetime);
protected virtual System.IdentityModel.Protocols.WSTrust.Lifetime GetTokenLifetime (System.IdentityModel.Protocols.WSTrust.Lifetime requestLifetime);
abstract member GetTokenLifetime : System.IdentityModel.Protocols.WSTrust.Lifetime -> System.IdentityModel.Protocols.WSTrust.Lifetime
override this.GetTokenLifetime : System.IdentityModel.Protocols.WSTrust.Lifetime -> System.IdentityModel.Protocols.WSTrust.Lifetime
Protected Overridable Function GetTokenLifetime (requestLifetime As Lifetime) As Lifetime
매개 변수
반환
부여된 수명을 나타내는 Lifetime입니다.
설명
이 메서드는 RST에 도착 하는 수명 정상적으로 호출 됩니다. 기본 구현에서 토큰 수명은 다음 표에 따라 계산 됩니다.
| (In) 생성 | 만료 (in) | (In) 생성 | (Out) 만료 |
|---|---|---|---|
null |
null |
DateTime.UtcNow | DateTime.UtcNow + SecurityTokenServiceConfiguration.DefaultTokenLifetime |
| C | null |
C | C + SecurityTokenServiceConfiguration.DefaultTokenLifetime |
null |
E | DateTime.UtcNow | E |
| C | E | C | E |
이 메서드는 기본 토큰 발급 파이프라인 구현에서 호출 된 Issue 메서드.