summary refs log tree commit diff
path: root/crypto/test
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-01-26 00:45:31 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-01-26 00:45:31 +0700
commit8716962b2b1fe7355e6c0275f6e4b4bc505d032d (patch)
tree68a3deec9ae4ff8108f78746fc669ec18ba0d44f /crypto/test
parentCleanup Platform.Equals (diff)
downloadBouncyCastle.NET-ed25519-8716962b2b1fe7355e6c0275f6e4b4bc505d032d.tar.xz
Fix PkixNameConstraintValidator method names
Diffstat (limited to 'crypto/test')
-rw-r--r--crypto/test/src/test/PkixNameConstraintsTest.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/crypto/test/src/test/PkixNameConstraintsTest.cs b/crypto/test/src/test/PkixNameConstraintsTest.cs
index 0d229a8cb..5b372d97e 100644
--- a/crypto/test/src/test/PkixNameConstraintsTest.cs
+++ b/crypto/test/src/test/PkixNameConstraintsTest.cs
@@ -194,7 +194,7 @@ namespace Org.BouncyCastle.Tests
             constraintValidator.IntersectPermittedSubtree(new DerSequence(new GeneralSubtree(
                 new GeneralName(GeneralName.DirectoryName,
                     new X509Name(true, "ou=permittedSubtree1, o=Test Certificates 2011, c=US")))));
-            constraintValidator.checkPermitted(
+            constraintValidator.CheckPermitted(
                 new GeneralName(GeneralName.DirectoryName,
                     new X509Name(true, "cn=Valid DN nameConstraints EE Certificate Test1, ou=permittedSubtree1, o=Test Certificates 2011, c=US")));
 
@@ -213,7 +213,7 @@ namespace Org.BouncyCastle.Tests
 
             try
             {
-                validator.checkExcluded(name);
+                validator.CheckExcluded(name);
             }
             catch (PkixNameConstraintValidatorException e)
             {
@@ -222,7 +222,7 @@ namespace Org.BouncyCastle.Tests
 
             try
             {
-                validator.checkPermitted(name);
+                validator.CheckPermitted(name);
             }
             catch (PkixNameConstraintValidatorException e)
             {
@@ -262,7 +262,7 @@ namespace Org.BouncyCastle.Tests
 				PkixNameConstraintValidator constraintValidator = new PkixNameConstraintValidator();
 				constraintValidator.IntersectPermittedSubtree(new DerSequence(new GeneralSubtree(
 					new GeneralName(nameType, testNameIsConstraint[i]))));
-				constraintValidator.checkPermitted(new GeneralName(nameType, testName));
+				constraintValidator.CheckPermitted(new GeneralName(nameType, testName));
 			}
 			for (int i = 0; i < testNameIsNotConstraint.Length; i++)
 			{
@@ -271,7 +271,7 @@ namespace Org.BouncyCastle.Tests
 					new GeneralName(nameType, testNameIsNotConstraint[i]))));
 				try
 				{
-					constraintValidator.checkPermitted(new GeneralName(nameType, testName));
+					constraintValidator.CheckPermitted(new GeneralName(nameType, testName));
 					Fail("not permitted name allowed: " + nameType);
 				}
 				catch (PkixNameConstraintValidatorException)
@@ -286,7 +286,7 @@ namespace Org.BouncyCastle.Tests
 					nameType, testNameIsConstraint[i])));
 				try
 				{
-					constraintValidator.checkExcluded(new GeneralName(nameType, testName));
+					constraintValidator.CheckExcluded(new GeneralName(nameType, testName));
 					Fail("excluded name missed: " + nameType);
 				}
 				catch (PkixNameConstraintValidatorException)
@@ -299,7 +299,7 @@ namespace Org.BouncyCastle.Tests
 				PkixNameConstraintValidator constraintValidator = new PkixNameConstraintValidator();
 				constraintValidator.AddExcludedSubtree(new GeneralSubtree(new GeneralName(
 					nameType, testNameIsNotConstraint[i])));
-				constraintValidator.checkExcluded(new GeneralName(nameType, testName));
+				constraintValidator.CheckExcluded(new GeneralName(nameType, testName));
 			}
 			for (int i = 0; i < testNames1.Length; i++)
 			{
@@ -373,7 +373,7 @@ namespace Org.BouncyCastle.Tests
 				constraintValidator.IntersectPermittedSubtree(new DerSequence(new GeneralSubtree(
 					new GeneralName(nameType, new DerOctetString(
 					testNameIsConstraint[i])))));
-				constraintValidator.checkPermitted(new GeneralName(nameType,
+				constraintValidator.CheckPermitted(new GeneralName(nameType,
 					new DerOctetString(testName)));
 			}
 			for (int i = 0; i < testNameIsNotConstraint.Length; i++)
@@ -384,7 +384,7 @@ namespace Org.BouncyCastle.Tests
 					testNameIsNotConstraint[i])))));
 				try
 				{
-					constraintValidator.checkPermitted(new GeneralName(nameType,
+					constraintValidator.CheckPermitted(new GeneralName(nameType,
 						new DerOctetString(testName)));
 					Fail("not permitted name allowed: " + nameType);
 				}
@@ -400,7 +400,7 @@ namespace Org.BouncyCastle.Tests
 					nameType, new DerOctetString(testNameIsConstraint[i]))));
 				try
 				{
-					constraintValidator.checkExcluded(new GeneralName(nameType,
+					constraintValidator.CheckExcluded(new GeneralName(nameType,
 						new DerOctetString(testName)));
 					Fail("excluded name missed: " + nameType);
 				}
@@ -414,7 +414,7 @@ namespace Org.BouncyCastle.Tests
 				PkixNameConstraintValidator constraintValidator = new PkixNameConstraintValidator();
 				constraintValidator.AddExcludedSubtree(new GeneralSubtree(new GeneralName(
 					nameType, new DerOctetString(testNameIsNotConstraint[i]))));
-				constraintValidator.checkExcluded(new GeneralName(nameType,
+				constraintValidator.CheckExcluded(new GeneralName(nameType,
 					new DerOctetString(testName)));
 			}
 			for (int i = 0; i < testNames1.Length; i++)