| File: Signing\Timestamp\Rfc3161TimestampTokenInfoFactory.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.Packaging\NuGet.Packaging.csproj (NuGet.Packaging) |
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace NuGet.Packaging.Signing { internal sealed class Rfc3161TimestampTokenInfoFactory { public static IRfc3161TimestampTokenInfo Create(byte[] bytes) { if (bytes == null) { throw new ArgumentNullException(nameof(bytes)); } IRfc3161TimestampTokenInfo iRfc3161TimestampTokenInfo; #if IS_DESKTOP iRfc3161TimestampTokenInfo = new Rfc3161TimestampTokenInfoNet472Wrapper(bytes); #else iRfc3161TimestampTokenInfo = new Rfc3161TimestampTokenInfoNetstandard21Wrapper(bytes); #endif return iRfc3161TimestampTokenInfo; } } }