JwtFormat.Unprotect Method (String)
Validates the specified JWT and builds an AuthenticationTicket from it.
Namespace: Microsoft.Owin.Security.Jwt
Assembly: Microsoft.Owin.Security.Jwt (in Microsoft.Owin.Security.Jwt.dll)
Syntax
public AuthenticationTicket Unprotect(
string protectedText
)
public:
virtual AuthenticationTicket^ Unprotect(
String^ protectedText
) sealed
abstract Unprotect :
protectedText:string -> AuthenticationTicket
override Unprotect :
protectedText:string -> AuthenticationTicket
Public Function Unprotect (
protectedText As String
) As AuthenticationTicket
Parameters
protectedText
Type: System.StringThe JWT to validate.
Return Value
Type: Microsoft.Owin.Security.AuthenticationTicket
An AuthenticationTicket built from the protectedText
Implements
ISecureDataFormat<TData>.Unprotect(String)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if the protectedText is null. |
ArgumentOutOfRangeException | Thrown if the protectedText is not a JWT. |
See Also
JwtFormat Class
Microsoft.Owin.Security.Jwt Namespace
Return to top