SecurityTokenResolver.TryResolveSecurityKey 메서드

정의

지정된 키 식별자 절에서 참조되는 키를 검색하려고 시도합니다.

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

예외

keyIdentifierClausenull입니다.

설명

TryResolveSecurityKeyResolveSecurityKey 식별자 절을 키로 확인할 수 없는 경우와 메서드는 서로 다릅니다. 메서드가 TryResolveSecurityKey 반환 false되는 반면 메서드는 ResolveSecurityKey 예외를 throw합니다.

적용 대상