diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-30 18:37:42 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-01-30 18:37:42 +0700 |
commit | 69881d436e64f0d8320ab8776685f5a228789514 (patch) | |
tree | 3cd32a90d734c89ee0ee516d39106015b4a2a2e6 /crypto/test | |
parent | Ensure configured SecureRandom is passed on (diff) | |
download | BouncyCastle.NET-ed25519-69881d436e64f0d8320ab8776685f5a228789514.tar.xz |
Change method names
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/test/PkixNameConstraintsTest.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/crypto/test/src/test/PkixNameConstraintsTest.cs b/crypto/test/src/test/PkixNameConstraintsTest.cs index 5b372d97e..a94dee789 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.CheckPermittedName( 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.CheckExcludedName(name); } catch (PkixNameConstraintValidatorException e) { @@ -222,7 +222,7 @@ namespace Org.BouncyCastle.Tests try { - validator.CheckPermitted(name); + validator.CheckPermittedName(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.CheckPermittedName(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.CheckPermittedName(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.CheckExcludedName(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.CheckExcludedName(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.CheckPermittedName(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.CheckPermittedName(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.CheckExcludedName(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.CheckExcludedName(new GeneralName(nameType, new DerOctetString(testName))); } for (int i = 0; i < testNames1.Length; i++) |