Skip to content

Commit

Permalink
fixed spelling, extra line
Browse files Browse the repository at this point in the history
  • Loading branch information
brentschmaltz committed Jun 26, 2020
1 parent 7eb317e commit 3744a01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/Microsoft.IdentityModel.Tokens/CryptoProviderFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ public CryptoProviderFactory(CryptoProviderFactory other)
/// <param name="algorithm">the algorithm to use.</param>
/// <exception cref="ArgumentNullException">thrown if <paramref name="key"/> is null.</exception>
/// <exception cref="ArgumentNullException">thrown if <paramref name="algorithm"/> is null or empty.</exception>
/// <exception cref="ArgumentException">thrown if If <see cref="SecurityKey"/> and algorithm pair are not supported.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assingable from <see cref="KeyWrapProvider"/>.</exception>
/// <exception cref="ArgumentException">thrown if <see cref="SecurityKey"/> and algorithm pair are not supported.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assignable from <see cref="KeyWrapProvider"/>.</exception>
/// <remarks>
/// <para>If <see cref="CustomCryptoProvider"/> is set and <see cref="ICryptoProvider.IsSupportedAlgorithm(string, object[])"/> returns true.
/// <see cref="ICryptoProvider.Create(string, object[])"/> is called to obtain the <see cref="AuthenticatedEncryptionProvider"/>.
Expand Down Expand Up @@ -152,8 +152,8 @@ public virtual AuthenticatedEncryptionProvider CreateAuthenticatedEncryptionProv
/// <param name="algorithm">the algorithm to use.</param>
/// <exception cref="ArgumentNullException">thrown if <paramref name="key"/> is null.</exception>
/// <exception cref="ArgumentNullException">thrown if <paramref name="algorithm"/> is null or empty.</exception>
/// <exception cref="NotSupportedException">thrown if If <see cref="SecurityKey"/> and algorithm pair are not supported.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type not assingable from <see cref="KeyWrapProvider"/>.</exception>
/// <exception cref="NotSupportedException">thrown if <see cref="SecurityKey"/> and algorithm pair are not supported.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type not assignable from <see cref="KeyWrapProvider"/>.</exception>
/// <remarks>
/// <para>If <see cref="CustomCryptoProvider"/> is set and <see cref="ICryptoProvider.IsSupportedAlgorithm(string, object[])"/> returns true.
/// <see cref="ICryptoProvider.Create(string, object[])"/> is called to obtain the <see cref="KeyWrapProvider"/>.
Expand Down Expand Up @@ -207,9 +207,9 @@ private KeyWrapProvider CreateKeyWrapProvider(SecurityKey key, string algorithm,
/// <exception cref="ArgumentNullException">thrown if <paramref name="key"/> is null.</exception>
/// <exception cref="ArgumentNullException">thrown if <paramref name="algorithm"/> is null or empty.</exception>
/// <exception cref="ArgumentOutOfRangeException">thrown if <see cref="SecurityKey.KeySize"/> is too small.</exception>
/// <exception cref="NotSupportedException">thrown if <see cref="SecurityKey"/> is not assingable from <see cref="AsymmetricSecurityKey"/> or <see cref="SymmetricSecurityKey"/>.</exception>
/// <exception cref="NotSupportedException">thrown if <see cref="SecurityKey"/> is not assignable from <see cref="AsymmetricSecurityKey"/> or <see cref="SymmetricSecurityKey"/>.</exception>
/// <exception cref="NotSupportedException">thrown if the key / algorithm is not supported.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assingable from <see cref="SignatureProvider"/>.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assignable from <see cref="SignatureProvider"/>.</exception>
/// <remarks>
/// <para>AsymmetricSignatureProviders require access to a PrivateKey for Signing.</para>
/// <para>When finished with the <see cref="SignatureProvider"/> call <see cref="ReleaseSignatureProvider(SignatureProvider)"/>.</para>
Expand Down Expand Up @@ -240,9 +240,9 @@ public virtual SignatureProvider CreateForSigning(SecurityKey key, string algori
/// <exception cref="ArgumentNullException">thrown if <paramref name="key"/> is null.</exception>
/// <exception cref="ArgumentNullException">thrown if <paramref name="algorithm"/> is null or empty.</exception>
/// <exception cref="ArgumentOutOfRangeException">thrown if <see cref="SecurityKey.KeySize"/> is too small.</exception>
/// <exception cref="NotSupportedException">thrown if <see cref="SecurityKey"/> is not assingable from <see cref="AsymmetricSecurityKey"/> or <see cref="SymmetricSecurityKey"/>.</exception>
/// <exception cref="NotSupportedException">thrown if <see cref="SecurityKey"/> is not assignable from <see cref="AsymmetricSecurityKey"/> or <see cref="SymmetricSecurityKey"/>.</exception>
/// <exception cref="NotSupportedException">thrown if the key / algorithm is not supported.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assingable from <see cref="SignatureProvider"/>.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assignable from <see cref="SignatureProvider"/>.</exception>
/// <remarks>When finished with the <see cref="SignatureProvider"/> call <see cref="ReleaseSignatureProvider(SignatureProvider)"/>.
/// <para>If <see cref="CustomCryptoProvider"/> is set and <see cref="ICryptoProvider.IsSupportedAlgorithm(string, object[])"/> returns true.
/// <see cref="ICryptoProvider.Create(string, object[])"/> is called to obtain the <see cref="SignatureProvider"/>.
Expand All @@ -269,7 +269,7 @@ public virtual SignatureProvider CreateForVerifying(SecurityKey key, string algo
/// </summary>
/// <param name="algorithm">the name of the hash algorithm to create.</param>
/// <exception cref="ArgumentNullException">thrown if <paramref name="algorithm"/> is null or empty.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assingable from <see cref="HashAlgorithm"/>.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assignable from <see cref="HashAlgorithm"/>.</exception>
/// <exception cref="NotSupportedException">thrown if <paramref name="algorithm"/> is not supported.</exception>
/// <remarks>When finished with the <see cref="HashAlgorithm"/> call <see cref="ReleaseHashAlgorithm(HashAlgorithm)"/>.
/// <para>If <see cref="CustomCryptoProvider"/> is set and <see cref="ICryptoProvider.IsSupportedAlgorithm(string, object[])"/> returns true.
Expand Down Expand Up @@ -306,7 +306,7 @@ public virtual HashAlgorithm CreateHashAlgorithm(HashAlgorithmName algorithm)
/// </summary>
/// <param name="algorithm">the name of the hash algorithm to create.</param>
/// <exception cref="ArgumentNullException">thrown if <paramref name="algorithm"/> is null or empty.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assingable from <see cref="HashAlgorithm"/>.</exception>
/// <exception cref="InvalidOperationException">thrown if <see cref="ICryptoProvider.Create(string, object[])"/> returns a type that is not assignable from <see cref="HashAlgorithm"/>.</exception>
/// <exception cref="NotSupportedException">thrown if <paramref name="algorithm"/> is not supported.</exception>
/// <remarks>When finished with the <see cref="HashAlgorithm"/> call <see cref="ReleaseHashAlgorithm(HashAlgorithm)"/>.
/// <para>If <see cref="CustomCryptoProvider"/> is set and <see cref="ICryptoProvider.IsSupportedAlgorithm(string, object[])"/> returns true.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public static void AddTestCase(string algorithm, SecurityKey securityKey, string

public static void AddTestCase(string algorithm, SecurityKey securityKey, bool isSupportedAlgorithm, string testId, TheoryData<SupportedAlgorithmTheoryData> theoryData, ExpectedException expectedException = null)
{

theoryData.Add(new SupportedAlgorithmTheoryData
{
Algorithm = algorithm,
Expand Down

0 comments on commit 3744a01

Please sign in to comment.