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입니다.

key
SecurityKey

이 메서드는 반환될 때 지정된 키 식별자 절에서 참조되는 키가 들어 있는 SecurityKey를 포함합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.

반환

지정된 키 식별자 절에 대한 키를 검색할 수 있으면 true이고, 그렇지 않으면 false입니다.

예외

keyIdentifierClause이(가) null인 경우

설명

ResolveSecurityKey 메서드는 TryResolveSecurityKey 키 식별자 절을 키로 확인할 수 없을 때 발생하는 작업과 다릅니다. 메서드는 TryResolveSecurityKey 를 반환 false하는 반면 메서드는 ResolveSecurityKey 예외를 throw합니다.

적용 대상