JwtSecurityTokenHandler.CreateSecurityTokenReference Method
Creates SecurityKeyIdentifierClause that identifies the SecurityToken.
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Overridable Function CreateSecurityTokenReference ( _
token As SecurityToken, _
attached As Boolean _
) As SecurityKeyIdentifierClause
public virtual SecurityKeyIdentifierClause CreateSecurityTokenReference(
SecurityToken token,
bool attached
)
public:
virtual SecurityKeyIdentifierClause^ CreateSecurityTokenReference(
SecurityToken^ token,
bool attached
)
abstract CreateSecurityTokenReference :
token:SecurityToken *
attached:bool -> SecurityKeyIdentifierClause
override CreateSecurityTokenReference :
token:SecurityToken *
attached:bool -> SecurityKeyIdentifierClause
public function CreateSecurityTokenReference(
token : SecurityToken,
attached : boolean
) : SecurityKeyIdentifierClause
Parameters
- token
Type: System.IdentityModel.Tokens.SecurityToken
- attached
Type: System.Boolean
Return Value
Type: System.IdentityModel.Tokens.SecurityKeyIdentifierClause
Always returns null
Remarks
Called by the mainline scenarios which would result in the base class throwing a NotImplementedException.
If the SecurityKeyIdentifierClause is required override this method.
.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.