C# Class Microsoft.SqlServer.TDS.EndPoint.FederatedAuthentication.JwtTicket

JWT implementation of federated authentication ticket Move this class to a different file once msbuild conversion is completed.
Inheritance: IFederatedAuthenticationTicket
Mostra file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
DecryptTicket ( byte encryptedTicket ) : IFederatedAuthenticationTicket

Takes the encrypted wire format of the ticket and, on successful authentication, returns the resulting ticket.

GetSignature ( byte bufferToSign ) : byte[]

Computes and returns the HMACSHA256 of the provided buffer using the Session Key associated with the auth ticket.

Private Methods

Method Description
JwtTicket ( byte ticket ) : System

Constructor that takes the RPS representation of the ticket as an argument

Method Details

DecryptTicket() public static method

Takes the encrypted wire format of the ticket and, on successful authentication, returns the resulting ticket.
public static DecryptTicket ( byte encryptedTicket ) : IFederatedAuthenticationTicket
encryptedTicket byte
return IFederatedAuthenticationTicket

GetSignature() public method

Computes and returns the HMACSHA256 of the provided buffer using the Session Key associated with the auth ticket.
public GetSignature ( byte bufferToSign ) : byte[]
bufferToSign byte
return byte[]