diff options
Diffstat (limited to 'crypto/src/pkix/PkixNameConstraintValidator.cs')
-rw-r--r-- | crypto/src/pkix/PkixNameConstraintValidator.cs | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/crypto/src/pkix/PkixNameConstraintValidator.cs b/crypto/src/pkix/PkixNameConstraintValidator.cs index ad59702c5..7a9e3f45e 100644 --- a/crypto/src/pkix/PkixNameConstraintValidator.cs +++ b/crypto/src/pkix/PkixNameConstraintValidator.cs @@ -1365,6 +1365,13 @@ namespace Org.BouncyCastle.Pkix return sub; } + /// <exception cref="PkixNameConstraintValidatorException"/> + [Obsolete("Use 'CheckPermittedName' instead")] + public void checkPermitted(GeneralName name) + { + CheckPermittedName(name); + } + /** * Checks if the given GeneralName is in the permitted ISet. * @@ -1372,8 +1379,8 @@ namespace Org.BouncyCastle.Pkix * @throws PkixNameConstraintValidatorException * If the <code>name</code> */ - public void checkPermitted(GeneralName name) - //throws PkixNameConstraintValidatorException + /// <exception cref="PkixNameConstraintValidatorException"/> + public void CheckPermittedName(GeneralName name) { switch (name.TagNo) { @@ -1398,6 +1405,13 @@ namespace Org.BouncyCastle.Pkix } } + /// <exception cref="PkixNameConstraintValidatorException"/> + [Obsolete("Use 'CheckExcludedName' instead")] + public void checkExcluded(GeneralName name) + { + CheckExcludedName(name); + } + /** * Check if the given GeneralName is contained in the excluded ISet. * @@ -1406,8 +1420,8 @@ namespace Org.BouncyCastle.Pkix * If the <code>name</code> is * excluded. */ - public void checkExcluded(GeneralName name) - //throws PkixNameConstraintValidatorException + /// <exception cref="PkixNameConstraintValidatorException"/> + public void CheckExcludedName(GeneralName name) { switch (name.TagNo) { @@ -1792,7 +1806,8 @@ namespace Org.BouncyCastle.Pkix public override string ToString() { - StringBuilder sb = new StringBuilder("permitted:\n"); + StringBuilder sb = new StringBuilder("permitted:"); + sb.AppendLine(); if (permittedSubtreesDN != null) { Append(sb, "DN", permittedSubtreesDN); @@ -1817,7 +1832,7 @@ namespace Org.BouncyCastle.Pkix { Append(sb, "OtherName", StringifyOtherNameCollection(permittedSubtreesOtherName)); } - sb.Append("excluded:\n"); + sb.AppendLine("excluded:"); if (excludedSubtreesDN.Count > 0) { Append(sb, "DN", excludedSubtreesDN); |