Skip to content

Commit

Permalink
Moved core lib to new namespace. #59
Browse files Browse the repository at this point in the history
  • Loading branch information
klings committed May 22, 2016
1 parent ee1f6e8 commit e480cca
Show file tree
Hide file tree
Showing 146 changed files with 202 additions and 200 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System;

namespace NWebsec.Core.Exceptions
namespace NWebsec.AspNetCore.Core.Exceptions
{
public class RedirectValidationException : Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Http;
using NWebsec.Annotations;

namespace NWebsec.Core.Extensions
namespace NWebsec.AspNetCore.Core.Extensions
{
public static class HttpContextExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion src/NWebsec.AspNetCore.Core/Fluent/IFluentInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.ComponentModel;

namespace NWebsec.Core.Fluent
namespace NWebsec.AspNetCore.Core.Fluent
{
/// <summary>
/// Interface that is used to build fluent interfaces and hides methods declared by <see cref="object" /> from
Expand Down
4 changes: 2 additions & 2 deletions src/NWebsec.AspNetCore.Core/Helpers/HeaderResultHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

using Microsoft.AspNetCore.Http;
using NWebsec.Core.HttpHeaders;
using NWebsec.AspNetCore.Core.HttpHeaders;

namespace NWebsec.Core.Helpers
namespace NWebsec.AspNetCore.Core.Helpers
{
public class HeaderResultHandler : IHeaderResultHandler
{
Expand Down
4 changes: 2 additions & 2 deletions src/NWebsec.AspNetCore.Core/Helpers/IHeaderResultHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

using Microsoft.AspNetCore.Http;
using NWebsec.Core.HttpHeaders;
using NWebsec.AspNetCore.Core.HttpHeaders;

namespace NWebsec.Core.Helpers
namespace NWebsec.AspNetCore.Core.Helpers
{
public interface IHeaderResultHandler
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.Helpers.X509
namespace NWebsec.AspNetCore.Core.Helpers.X509
{
internal class TlvTripletHeader
{
Expand Down
2 changes: 1 addition & 1 deletion src/NWebsec.AspNetCore.Core/Helpers/X509/X509Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;

namespace NWebsec.Core.Helpers.X509
namespace NWebsec.AspNetCore.Core.Helpers.X509
{
public class X509Helper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class CspConfiguration : ICspConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class CspDirectiveConfiguration : ICspDirectiveConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class CspHeaderConfiguration : ICspHeaderConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class CspPluginTypesDirectiveConfiguration : ICspPluginTypesDirectiveConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class CspReportUriDirectiveConfiguration : ICspReportUriDirectiveConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class CspSandboxDirectiveConfiguration : ICspSandboxDirectiveConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class CspUpgradeDirectiveConfiguration : ICspUpgradeDirectiveConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class HpkpConfiguration : IHpkpConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class HstsConfiguration : IHstsConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface ICspConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

using System.Collections.Generic;
using System.ComponentModel;
using NWebsec.Core.Fluent;
using NWebsec.AspNetCore.Core.Fluent;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
/// <summary>
/// Defines the properties required for CSP directive configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.ComponentModel;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
/// <summary>
/// Defines the properties required for CSP directive configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.ComponentModel;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
/// <summary>
/// Defines the properties required for CSP directive configuration.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface ICspHeaderConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
/// <summary>
/// Defines the properties required for CSP sandbox directive configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface ICspReportUriDirectiveConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
/// <summary>
/// Defines the properties required for CSP sandbox directive configuration.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
/// <summary>
/// Defines the properties required for CSP sandbox directive configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Security.Cryptography.X509Certificates;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface IHpkpCertConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface IHpkpConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface IHpkpPinConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface IHstsConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface IRedirectValidationConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface ISameHostHttpsRedirectConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface ISimpleBooleanConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface IXFrameOptionsConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface IXRobotsTagConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public interface IXXssProtectionConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System.Collections.Generic;

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
internal class RedirectValidationConfiguration : IRedirectValidationConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class SameHostHttpsRedirectConfiguration : ISameHostHttpsRedirectConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class SimpleBooleanConfiguration : ISimpleBooleanConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Text.RegularExpressions;

namespace NWebsec.Core.HttpHeaders.Configuration.Validation
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration.Validation
{
public class HpkpConfigurationValidator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System;

namespace NWebsec.Core.HttpHeaders.Configuration.Validation
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration.Validation
{
public class HstsConfigurationValidator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Linq;
using System.Text.RegularExpressions;

namespace NWebsec.Core.HttpHeaders.Configuration.Validation
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration.Validation
{
public class Rfc2045MediaTypeValidator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using System;

namespace NWebsec.Core.HttpHeaders.Configuration.Validation
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration.Validation
{
public class XRobotsTagConfigurationValidator
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class XFrameOptionsConfiguration : IXFrameOptionsConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class XRobotsTagConfiguration : IXRobotsTagConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) André N. Klingsheim. See License.txt in the project root for license information.

namespace NWebsec.Core.HttpHeaders.Configuration
namespace NWebsec.AspNetCore.Core.HttpHeaders.Configuration
{
public class XXssProtectionConfiguration : IXXssProtectionConfiguration
{
Expand Down
Loading

0 comments on commit e480cca

Please sign in to comment.