Saml2SecurityTokenHandler.DetectReplayedToken(SecurityToken) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 토큰이 토큰 재생 캐시에 이미 있는 경우 예외를 throw합니다. 그렇지 않으면 토큰이 캐시에 추가됩니다.
protected:
override void DetectReplayedToken(System::IdentityModel::Tokens::SecurityToken ^ token);
protected override void DetectReplayedToken(System.IdentityModel.Tokens.SecurityToken token);
override this.DetectReplayedToken : System.IdentityModel.Tokens.SecurityToken -> unit
Protected Overrides Sub DetectReplayedToken (token As SecurityToken)
매개 변수
- token
- SecurityToken
SecurityToken 확인할 SAML 2.0 보안 토큰(토큰 형식Saml2SecurityToken이어야 함)을 나타내는 A입니다.
예외
token은 null입니다.
Configuration 속성은 null입니다.
-또는-
처리기 구성의 속성 아래에 TokenReplayCache 구성되지 않았습니다Caches(속성을 통해 Configuration 액세스).
token 의 인스턴스 Saml2SecurityToken로 캐스팅할 수 없습니다.
토큰과 연결된 어설션의 ID가 비어 있거나 비어 있습니다 null . (토큰의 속성은 Assertion 속성이 Saml2Assertion 있거나 비어 있는 속성을 참조하는 속성이 있는 것을 Id 참조 Saml2Id 합니다 Valuenull.)
토큰이 이미 있습니다 TokenReplayCache.
설명
기본 동작은 전달자 토큰(키가 없는 토큰)만 확인하는 것입니다. 토큰 재생 캐시는 TokenReplayCache 속성을 통해 참조되는 Caches 개체의 SecurityTokenHandlerConfiguration 속성을 통해 Configuration 이 처리기에 대해 구성된 개체입니다.