Authenticates the specified security token and returns the set of authorization policies for the security token.
Namespace:
System.IdentityModel.Selectors
Assembly:
System.IdentityModel (in System.IdentityModel.dll)
Visual Basic (Declaration)
Public Function ValidateToken ( _
token As SecurityToken _
) As ReadOnlyCollection(Of IAuthorizationPolicy)
Dim instance As SecurityTokenAuthenticator
Dim token As SecurityToken
Dim returnValue As ReadOnlyCollection(Of IAuthorizationPolicy)
returnValue = instance.ValidateToken(token)
public ReadOnlyCollection<IAuthorizationPolicy> ValidateToken(
SecurityToken token
)
public:
ReadOnlyCollection<IAuthorizationPolicy^>^ ValidateToken(
SecurityToken^ token
)
public function ValidateToken(
token : SecurityToken
) : ReadOnlyCollection<IAuthorizationPolicy>
The ValidateToken method checks whether the token parameter is nullNothingnullptra null reference (Nothing in Visual Basic), calls the CanValidateToken method to determine if this security token authenticator can authenticate this security token, and then if it can, calls the ValidateTokenCore method.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5, 3.0
Reference