Enabled xml doc generation
This commit is contained in:
parent
ec5808f8b6
commit
3007398648
|
|
@ -1,12 +1,7 @@
|
||||||
{
|
{
|
||||||
"adx": { // Packages written by the ADX team and that ship on NuGet.org
|
"adx": { // Packages written by the ADX team and that ship on NuGet.org
|
||||||
"rules": [
|
"rules": [
|
||||||
"AssemblyHasDocumentFileRule",
|
"AdxVerificationCompositeRule"
|
||||||
"AssemblyHasVersionAttributesRule",
|
|
||||||
"AssemblyHasServicingAttributeRule",
|
|
||||||
"AssemblyHasNeutralResourcesLanguageAttributeRule",
|
|
||||||
"SatellitePackageRule",
|
|
||||||
"StrictSemanticVersionValidationRule"
|
|
||||||
],
|
],
|
||||||
"packages": {
|
"packages": {
|
||||||
"Microsoft.AspNetCore.Cryptography.Internal": { },
|
"Microsoft.AspNetCore.Cryptography.Internal": { },
|
||||||
|
|
@ -25,12 +20,7 @@
|
||||||
},
|
},
|
||||||
"Default": { // Rules to run for packages not listed in any other set.
|
"Default": { // Rules to run for packages not listed in any other set.
|
||||||
"rules": [
|
"rules": [
|
||||||
"AssemblyHasDocumentFileRule",
|
"DefaultCompositeRule"
|
||||||
"AssemblyHasVersionAttributesRule",
|
|
||||||
"AssemblyHasServicingAttributeRule",
|
|
||||||
"AssemblyHasNeutralResourcesLanguageAttributeRule",
|
|
||||||
"SatellitePackageRule",
|
|
||||||
"StrictSemanticVersionValidationRule"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -21,6 +21,8 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"allowUnsafe": true,
|
"allowUnsafe": true,
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk",
|
||||||
|
"nowarn": [ "CS1591" ],
|
||||||
|
"xmlDoc": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"allowUnsafe": true,
|
"allowUnsafe": true,
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk",
|
||||||
|
"nowarn": [ "CS1591" ],
|
||||||
|
"xmlDoc": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// <param name="protector">The data protector to use for this operation.</param>
|
/// <param name="protector">The data protector to use for this operation.</param>
|
||||||
/// <param name="protectedData">The protected data to unprotect.</param>
|
/// <param name="protectedData">The protected data to unprotect.</param>
|
||||||
/// <returns>The plaintext form of the protected data.</returns>
|
/// <returns>The plaintext form of the protected data.</returns>
|
||||||
/// <exception cref="CryptographicException">
|
/// <exception cref="System.Security.Cryptography.CryptographicException">
|
||||||
/// Thrown if <paramref name="protectedData"/> is invalid or malformed.
|
/// Thrown if <paramref name="protectedData"/> is invalid or malformed.
|
||||||
/// </exception>
|
/// </exception>
|
||||||
public static string Unprotect(this IDataProtector protector, string protectedData)
|
public static string Unprotect(this IDataProtector protector, string protectedData)
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates an <see cref="IDataProtector"/> given a purpose.
|
/// Creates an <see cref="IDataProtector"/> given a purpose.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="purposes">
|
/// <param name="purpose">
|
||||||
/// The purpose to be assigned to the newly-created <see cref="IDataProtector"/>.
|
/// The purpose to be assigned to the newly-created <see cref="IDataProtector"/>.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <returns>An IDataProtector tied to the provided purpose.</returns>
|
/// <returns>An IDataProtector tied to the provided purpose.</returns>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="protectedData">The protected data to unprotect.</param>
|
/// <param name="protectedData">The protected data to unprotect.</param>
|
||||||
/// <returns>The plaintext form of the protected data.</returns>
|
/// <returns>The plaintext form of the protected data.</returns>
|
||||||
/// <exception cref="CryptographicException">
|
/// <exception cref="System.Security.Cryptography.CryptographicException">
|
||||||
/// Thrown if the protected data is invalid or malformed.
|
/// Thrown if the protected data is invalid or malformed.
|
||||||
/// </exception>
|
/// </exception>
|
||||||
byte[] Unprotect(byte[] protectedData);
|
byte[] Unprotect(byte[] protectedData);
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@
|
||||||
},
|
},
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk",
|
||||||
|
"nowarn": [ "CS1591" ],
|
||||||
|
"xmlDoc": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -101,7 +101,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// <param name="expiration">An 'out' parameter which upon a successful unprotect
|
/// <param name="expiration">An 'out' parameter which upon a successful unprotect
|
||||||
/// operation receives the expiration date of the payload.</param>
|
/// operation receives the expiration date of the payload.</param>
|
||||||
/// <returns>The plaintext form of the protected data.</returns>
|
/// <returns>The plaintext form of the protected data.</returns>
|
||||||
/// <exception cref="CryptographicException">
|
/// <exception cref="System.Security.Cryptography.CryptographicException">
|
||||||
/// Thrown if <paramref name="protectedData"/> is invalid, malformed, or expired.
|
/// Thrown if <paramref name="protectedData"/> is invalid, malformed, or expired.
|
||||||
/// </exception>
|
/// </exception>
|
||||||
public static string Unprotect(this ITimeLimitedDataProtector protector, string protectedData, out DateTimeOffset expiration)
|
public static string Unprotect(this ITimeLimitedDataProtector protector, string protectedData, out DateTimeOffset expiration)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates an <see cref="ITimeLimitedDataProtector"/> given a purpose.
|
/// Creates an <see cref="ITimeLimitedDataProtector"/> given a purpose.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="purposes">
|
/// <param name="purpose">
|
||||||
/// The purpose to be assigned to the newly-created <see cref="ITimeLimitedDataProtector"/>.
|
/// The purpose to be assigned to the newly-created <see cref="ITimeLimitedDataProtector"/>.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <returns>An <see cref="ITimeLimitedDataProtector"/> tied to the provided purpose.</returns>
|
/// <returns>An <see cref="ITimeLimitedDataProtector"/> tied to the provided purpose.</returns>
|
||||||
|
|
@ -47,7 +47,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// <param name="expiration">An 'out' parameter which upon a successful unprotect
|
/// <param name="expiration">An 'out' parameter which upon a successful unprotect
|
||||||
/// operation receives the expiration date of the payload.</param>
|
/// operation receives the expiration date of the payload.</param>
|
||||||
/// <returns>The plaintext form of the protected data.</returns>
|
/// <returns>The plaintext form of the protected data.</returns>
|
||||||
/// <exception cref="CryptographicException">
|
/// <exception cref="System.Security.Cryptography.CryptographicException">
|
||||||
/// Thrown if <paramref name="protectedData"/> is invalid, malformed, or expired.
|
/// Thrown if <paramref name="protectedData"/> is invalid, malformed, or expired.
|
||||||
/// </exception>
|
/// </exception>
|
||||||
byte[] Unprotect(byte[] protectedData, out DateTimeOffset expiration);
|
byte[] Unprotect(byte[] protectedData, out DateTimeOffset expiration);
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@
|
||||||
},
|
},
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk",
|
||||||
|
"nowarn": [ "CS1591" ],
|
||||||
|
"xmlDoc": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -20,7 +20,9 @@
|
||||||
},
|
},
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk",
|
||||||
|
"nowarn": [ "CS1591" ],
|
||||||
|
"xmlDoc": true
|
||||||
},
|
},
|
||||||
"packInclude": {
|
"packInclude": {
|
||||||
"content/net451/": "web.config.transform"
|
"content/net451/": "web.config.transform"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ namespace Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.Configurat
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a configured authenticated encryption mechanism which uses
|
/// Represents a configured authenticated encryption mechanism which uses
|
||||||
/// managed <see cref="SymmetricAlgorithm"/> and <see cref="KeyedHashAlgorithm"/> types.
|
/// managed <see cref="System.Security.Cryptography.SymmetricAlgorithm"/> and
|
||||||
|
/// <see cref="System.Security.Cryptography.KeyedHashAlgorithm"/> types.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class ManagedAuthenticatedEncryptorConfiguration : IAuthenticatedEncryptorConfiguration, IInternalAuthenticatedEncryptorConfiguration
|
public sealed class ManagedAuthenticatedEncryptorConfiguration : IAuthenticatedEncryptorConfiguration, IInternalAuthenticatedEncryptorConfiguration
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ using System.Security.Cryptography.X509Certificates;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.DataProtection
|
namespace Microsoft.AspNetCore.DataProtection
|
||||||
{
|
{
|
||||||
|
#if !DOTNET5_4
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides access to configuration for the data protection system, which allows the
|
/// Provides access to configuration for the data protection system, which allows the
|
||||||
/// developer to configure default cryptographic algorithms, key storage locations,
|
/// developer to configure default cryptographic algorithms, key storage locations,
|
||||||
|
|
@ -26,7 +27,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// <para>
|
/// <para>
|
||||||
/// If the developer changes the at-rest key protection mechanism, it is intended that
|
/// If the developer changes the at-rest key protection mechanism, it is intended that
|
||||||
/// he also change the key storage location, and vice versa. For instance, a call to
|
/// he also change the key storage location, and vice versa. For instance, a call to
|
||||||
/// <see cref="ProtectKeysWithCertificate(string)"/> should generally be accompanied by
|
/// <see cref="ProtectKeysWithCertificate(string)" /> should generally be accompanied by
|
||||||
/// a call to <see cref="PersistKeysToFileSystem(DirectoryInfo)"/>, or exceptions may
|
/// a call to <see cref="PersistKeysToFileSystem(DirectoryInfo)"/>, or exceptions may
|
||||||
/// occur at runtime due to the data protection system not knowing where to persist keys.
|
/// occur at runtime due to the data protection system not knowing where to persist keys.
|
||||||
/// </para>
|
/// </para>
|
||||||
|
|
@ -43,6 +44,31 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// contain existing keys that use older algorithms or protection mechanisms.
|
/// contain existing keys that use older algorithms or protection mechanisms.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
|
#else
|
||||||
|
/// <summary>
|
||||||
|
/// Provides access to configuration for the data protection system, which allows the
|
||||||
|
/// developer to configure default cryptographic algorithms, key storage locations,
|
||||||
|
/// and the mechanism by which keys are protected at rest.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// <para>
|
||||||
|
/// If the developer changes the at-rest key protection mechanism, it is intended that
|
||||||
|
/// he also change the key storage location, and vice versa.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// Similarly, when a developer modifies the default protected payload cryptographic
|
||||||
|
/// algorithms, it is intended that he also select an explitiy key storage location.
|
||||||
|
/// A call to <see cref="UseCryptographicAlgorithms(AuthenticatedEncryptionOptions)"/>
|
||||||
|
/// should therefore generally be paired with a call to <see cref="PersistKeysToFileSystem(DirectoryInfo)"/>,
|
||||||
|
/// for example.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// When the default cryptographic algorithms or at-rest key protection mechanisms are
|
||||||
|
/// changed, they only affect <strong>new</strong> keys in the repository. The repository may
|
||||||
|
/// contain existing keys that use older algorithms or protection mechanisms.
|
||||||
|
/// </para>
|
||||||
|
/// </remarks>
|
||||||
|
#endif
|
||||||
public class DataProtectionConfiguration
|
public class DataProtectionConfiguration
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -284,7 +310,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// See https://msdn.microsoft.com/en-us/library/windows/desktop/hh769091(v=vs.85).aspx
|
/// See https://msdn.microsoft.com/en-us/library/windows/desktop/hh769091(v=vs.85).aspx
|
||||||
/// and https://msdn.microsoft.com/en-us/library/windows/desktop/hh706800(v=vs.85).aspx
|
/// and https://msdn.microsoft.com/en-us/library/windows/desktop/hh706800(v=vs.85).aspx
|
||||||
/// for more information on valid values for the the <paramref name="descriptor"/>
|
/// for more information on valid values for the the <paramref name="protectionDescriptorRule"/>
|
||||||
/// and <paramref name="flags"/> arguments.
|
/// and <paramref name="flags"/> arguments.
|
||||||
/// This API is only supported on Windows 8 / Windows Server 2012 and higher.
|
/// This API is only supported on Windows 8 / Windows Server 2012 and higher.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ namespace Microsoft.AspNetCore.DataProtection
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a <see cref="Policy"/> object from the default registry location.
|
/// Returns an array of <see cref="ServiceDescriptor"/>s from the default registry location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static ServiceDescriptor[] ResolveDefaultPolicy()
|
public static ServiceDescriptor[] ResolveDefaultPolicy()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ namespace Microsoft.AspNetCore.DataProtection.Repositories
|
||||||
/// Creates a <see cref="RegistryXmlRepository"/> with keys stored in the given registry key.
|
/// Creates a <see cref="RegistryXmlRepository"/> with keys stored in the given registry key.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="registryKey">The registry key in which to persist key material.</param>
|
/// <param name="registryKey">The registry key in which to persist key material.</param>
|
||||||
|
/// <param name="services">The <see cref="IServiceProvider"/> used to resolve services.</param>
|
||||||
public RegistryXmlRepository(RegistryKey registryKey, IServiceProvider services)
|
public RegistryXmlRepository(RegistryKey registryKey, IServiceProvider services)
|
||||||
{
|
{
|
||||||
if (registryKey == null)
|
if (registryKey == null)
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ namespace Microsoft.AspNetCore.DataProtection.XmlEncryption
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="encryptedElement">An encrypted XML element.</param>
|
/// <param name="encryptedElement">An encrypted XML element.</param>
|
||||||
/// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
|
/// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
|
||||||
/// <remarks>
|
|
||||||
public XElement Decrypt(XElement encryptedElement)
|
public XElement Decrypt(XElement encryptedElement)
|
||||||
{
|
{
|
||||||
if (encryptedElement == null)
|
if (encryptedElement == null)
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ namespace Microsoft.AspNetCore.DataProtection.XmlEncryption
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="encryptedElement">An encrypted XML element.</param>
|
/// <param name="encryptedElement">An encrypted XML element.</param>
|
||||||
/// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
|
/// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
|
||||||
/// <remarks>
|
|
||||||
public XElement Decrypt(XElement encryptedElement)
|
public XElement Decrypt(XElement encryptedElement)
|
||||||
{
|
{
|
||||||
if (encryptedElement == null)
|
if (encryptedElement == null)
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ namespace Microsoft.AspNetCore.DataProtection.XmlEncryption
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="encryptedElement">An encrypted XML element.</param>
|
/// <param name="encryptedElement">An encrypted XML element.</param>
|
||||||
/// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
|
/// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
|
||||||
/// <remarks>
|
|
||||||
public XElement Decrypt(XElement encryptedElement)
|
public XElement Decrypt(XElement encryptedElement)
|
||||||
{
|
{
|
||||||
if (encryptedElement == null)
|
if (encryptedElement == null)
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ namespace Microsoft.AspNetCore.DataProtection.XmlEncryption
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="encryptedElement">An encrypted XML element.</param>
|
/// <param name="encryptedElement">An encrypted XML element.</param>
|
||||||
/// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
|
/// <returns>The decrypted form of <paramref name="encryptedElement"/>.</returns>
|
||||||
/// <remarks>
|
|
||||||
public XElement Decrypt(XElement encryptedElement)
|
public XElement Decrypt(XElement encryptedElement)
|
||||||
{
|
{
|
||||||
if (encryptedElement == null)
|
if (encryptedElement == null)
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@
|
||||||
"compilationOptions": {
|
"compilationOptions": {
|
||||||
"allowUnsafe": true,
|
"allowUnsafe": true,
|
||||||
"warningsAsErrors": true,
|
"warningsAsErrors": true,
|
||||||
"keyFile": "../../tools/Key.snk"
|
"keyFile": "../../tools/Key.snk",
|
||||||
|
"nowarn": [ "CS1591" ],
|
||||||
|
"xmlDoc": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue