| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Globalization; |
| | | 6 | | |
| | | 7 | | namespace CoreWCF.IdentityModel.Tokens |
| | | 8 | | { |
| | | 9 | | internal sealed class EncryptedKeyHashIdentifierClause : BinaryKeyIdentifierClause |
| | | 10 | | { |
| | | 11 | | public EncryptedKeyHashIdentifierClause(byte[] encryptedKeyHash) |
| | 0 | 12 | | : this(encryptedKeyHash, true) |
| | | 13 | | { |
| | 0 | 14 | | } |
| | | 15 | | |
| | | 16 | | internal EncryptedKeyHashIdentifierClause(byte[] encryptedKeyHash, bool cloneBuffer) |
| | 0 | 17 | | : this(encryptedKeyHash, cloneBuffer, null, 0) |
| | | 18 | | { |
| | 0 | 19 | | } |
| | | 20 | | |
| | | 21 | | internal EncryptedKeyHashIdentifierClause(byte[] encryptedKeyHash, bool cloneBuffer, byte[] derivationNonce, int |
| | 4 | 22 | | : base(null, encryptedKeyHash, cloneBuffer, derivationNonce, derivationLength) |
| | | 23 | | { |
| | 4 | 24 | | } |
| | | 25 | | |
| | | 26 | | public byte[] GetEncryptedKeyHash() |
| | | 27 | | { |
| | 0 | 28 | | return GetBuffer(); |
| | | 29 | | } |
| | | 30 | | |
| | | 31 | | public override string ToString() |
| | | 32 | | { |
| | 0 | 33 | | return string.Format(CultureInfo.InvariantCulture, "EncryptedKeyHashIdentifierClause(Hash = {0})", Convert.T |
| | | 34 | | } |
| | | 35 | | } |
| | | 36 | | } |