diff options
Diffstat (limited to 'crypto/src/x509/X509Certificate.cs')
-rw-r--r-- | crypto/src/x509/X509Certificate.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/x509/X509Certificate.cs b/crypto/src/x509/X509Certificate.cs index b1307d90e..944b627b0 100644 --- a/crypto/src/x509/X509Certificate.cs +++ b/crypto/src/x509/X509Certificate.cs @@ -312,6 +312,9 @@ namespace Org.BouncyCastle.X509 return Arrays.Clone(sigAlgParams); } + /// <summary>The signature algorithm.</summary> + public virtual AlgorithmIdentifier SignatureAlgorithm => c.SignatureAlgorithm; + /// <summary> /// Get the issuers UID. /// </summary> @@ -629,6 +632,7 @@ namespace Org.BouncyCastle.X509 return buf.ToString(); } + // TODO[api] Rename 'key' to 'publicKey' public virtual bool IsSignatureValid(AsymmetricKeyParameter key) { return CheckSignatureValid(new Asn1VerifierFactory(c.SignatureAlgorithm, key)); |