SecurityTokenResolver.TryResolveSecurityKey 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 키 식별자 절에서 참조되는 키를 검색하려고 시도합니다.
public:
bool TryResolveSecurityKey(System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ keyIdentifierClause, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityKey ^ % key);
public bool TryResolveSecurityKey(System.IdentityModel.Tokens.SecurityKeyIdentifierClause keyIdentifierClause, out System.IdentityModel.Tokens.SecurityKey key);
member this.TryResolveSecurityKey : System.IdentityModel.Tokens.SecurityKeyIdentifierClause * SecurityKey -> bool
Public Function TryResolveSecurityKey (keyIdentifierClause As SecurityKeyIdentifierClause, ByRef key As SecurityKey) As Boolean
매개 변수
- keyIdentifierClause
- SecurityKeyIdentifierClause
SecurityKeyIdentifierClause 키를 검색할 A입니다.
- key
- SecurityKey
이 메서드가 반환될 때 지정된 키 식별자 절에서 참조되는 키가 포함된 키가 포함 SecurityKey 됩니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.
반품
true지정된 키 식별자 절에 대해 키를 검색할 수 있으면 이고, 그렇지 않으면 . false
예외
keyIdentifierClause은 null입니다.
설명
TryResolveSecurityKey 키 ResolveSecurityKey 식별자 절을 키로 확인할 수 없는 경우와 메서드는 서로 다릅니다. 메서드가 TryResolveSecurityKey 반환 false되는 반면 메서드는 ResolveSecurityKey 예외를 throw합니다.