C# Class Thinktecture.IdentityModel.Claims.PpidCalculator

Calculates PPIDs
Mostra file Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method Description
Calculate ( string cardId, X509Certificate2 certificate, string entropy ) : string

Calculates the PPID for the SSL case.

Calculate ( string cardId, string dns, string entropy ) : string

Calculates the PPID for the No-SSL case.

CalculatePseudonym ( string userId, string clientPseudonym, string entropy ) : string

Calculates the PPID using the client pseudonym.

Private Methods

Method Description
Calculate ( string cardId, byte ppidSeed, string entropy ) : string

Calculates the PPID for a given CardId, PPID seed and entropy.

ExtractValues ( X509Certificate2 certificate, string &o, string &l, string &s, string &c, string &cn ) : void

Extracts the O, L, S, C, CN values from a subject name

GetValueFromSubject ( string part, string segments ) : string

Gets a value from a splitted subject.

Method Details

Calculate() public static method

Calculates the PPID for the SSL case.
public static Calculate ( string cardId, X509Certificate2 certificate, string entropy ) : string
cardId string The card id.
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The certificate.
entropy string The entropy.
return string

Calculate() public static method

Calculates the PPID for the No-SSL case.
public static Calculate ( string cardId, string dns, string entropy ) : string
cardId string The card id.
dns string The DNS.
entropy string The entropy.
return string

CalculatePseudonym() public static method

Calculates the PPID using the client pseudonym.
public static CalculatePseudonym ( string userId, string clientPseudonym, string entropy ) : string
userId string The user id.
clientPseudonym string The client pseudonym.
entropy string The entropy.
return string