SecurityTokenElement.GetSecurityToken Method ()

.NET Framework (current version)
 

Gets the security token that is represented by the current instance.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public SecurityToken GetSecurityToken()

Return Value

Type: System.IdentityModel.Tokens.SecurityToken

The security token that the current instance represents.

If the current instance was not constructed explicitly from a SecurityToken object by using the SecurityTokenElement.SecurityTokenElement(SecurityToken) constructor, then the ReadSecurityToken method is called to return the security token.

.NET Framework
Available since 4.5
Return to top
Show: