JwtHeader.SigningKeyIdentifier Property
Gets a SecurityKeyIdentifier that contains a SecurityKeyIdentifierClause for each key found.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property SigningKeyIdentifier As SecurityKeyIdentifier
public virtual SecurityKeyIdentifier SigningKeyIdentifier { get; }
public:
virtual property SecurityKeyIdentifier^ SigningKeyIdentifier {
SecurityKeyIdentifier^ get ();
}
abstract SigningKeyIdentifier : SecurityKeyIdentifier with get
override SigningKeyIdentifier : SecurityKeyIdentifier with get
function get SigningKeyIdentifier () : SecurityKeyIdentifier
Property Value
Type: System.IdentityModel.Tokens.SecurityKeyIdentifier
Returns a SecurityKeyIdentifier object.
Remarks
Keys are identified by matching a Reserved Header Parameter Name, which is described in the in JSON Web Signature (JWS) specification. Recognized names are:
jku
jkw
kid
x5c
x5t
x5u
x5t adds a X509ThumbprintKeyIdentifierClause passing the result of a [Base64UrlDecoded(Value)] to the constructor.
jku, jkw, kid, x5u, and x5c each add a NamedKeySecurityKeyIdentifierClause with the { Name, Value } passed to the NamedKeySecurityKeyIdentifierClause constructor.
If no keys are found, an empty SecurityKeyIdentifier is returned.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.