diff options
Diffstat (limited to 'Crypto/src/crypto/tls/CertificateRequest.cs')
-rw-r--r-- | Crypto/src/crypto/tls/CertificateRequest.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Crypto/src/crypto/tls/CertificateRequest.cs b/Crypto/src/crypto/tls/CertificateRequest.cs new file mode 100644 index 000000000..49d8ba6fb --- /dev/null +++ b/Crypto/src/crypto/tls/CertificateRequest.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections; + +namespace Org.BouncyCastle.Crypto.Tls +{ + public class CertificateRequest + { + private ClientCertificateType[] certificateTypes; + private IList certificateAuthorities; + + public CertificateRequest(ClientCertificateType[] certificateTypes, IList certificateAuthorities) + { + this.certificateTypes = certificateTypes; + this.certificateAuthorities = certificateAuthorities; + } + + public ClientCertificateType[] CertificateTypes + { + get { return certificateTypes; } + } + + /// <returns>A <see cref="IList"/> of X509Name</returns> + public IList CertificateAuthorities + { + get { return certificateAuthorities; } + } + } +} \ No newline at end of file |