diff options
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/LegacyTlsClient.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/crypto/tls/LegacyTlsClient.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/LegacyTlsClient.java b/core/src/main/java/org/bouncycastle/crypto/tls/LegacyTlsClient.java new file mode 100644 index 00000000..33217ac4 --- /dev/null +++ b/core/src/main/java/org/bouncycastle/crypto/tls/LegacyTlsClient.java @@ -0,0 +1,33 @@ +package org.bouncycastle.crypto.tls; + +import java.io.IOException; + +/** + * A temporary class to use LegacyTlsAuthentication + * + * @deprecated + */ +public class LegacyTlsClient + extends DefaultTlsClient +{ + /** + * @deprecated + */ + protected CertificateVerifyer verifyer; + + /** + * @deprecated + */ + public LegacyTlsClient(CertificateVerifyer verifyer) + { + super(); + + this.verifyer = verifyer; + } + + public TlsAuthentication getAuthentication() + throws IOException + { + return new LegacyTlsAuthentication(verifyer); + } +} |