public SspiNegotiationTokenProviderState(ISspiNegotiation sspiNegotiation) { if (sspiNegotiation == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("sspiNegotiation"); } this.sspiNegotiation = sspiNegotiation; this.negotiationDigest = CryptoHelper.NewSha1HashAlgorithm(); }
public SspiNegotiationTokenAuthenticatorState(ISspiNegotiation sspiNegotiation) { if (sspiNegotiation == null) { throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("sspiNegotiation"); } this.sspiNegotiation = sspiNegotiation; this.negotiationDigest = CryptoHelper.NewSha1HashAlgorithm(); }
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromBinaryCore(byte[] rawData) { byte[] tokenHash; using (HashAlgorithm hasher = CryptoHelper.NewSha1HashAlgorithm()) { tokenHash = hasher.ComputeHash(rawData, 0, rawData.Length); } return(new KerberosTicketHashKeyIdentifierClause(tokenHash)); }