aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/tls/LegacyTlsClient.java
blob: 32384ff9972d5d7a6de6e93c039e91f0a777abaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package org.spongycastle.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);
    }
}