public class

LegacyTlsAuthentication

extends Object
implements TlsAuthentication
java.lang.Object
   ↳ org.bouncycastle.crypto.tls.LegacyTlsAuthentication

This class is deprecated.
No replacement.

Class Overview

A temporary class to wrap old CertificateVerifyer stuff for new TlsAuthentication

Summary

Fields
protected CertificateVerifyer verifyer
Public Constructors
LegacyTlsAuthentication(CertificateVerifyer verifyer)
Public Methods
TlsCredentials getClientCredentials(CertificateRequest certificateRequest)
Return client credentials in response to server's certificate request
void notifyServerCertificate(Certificate serverCertificate)
Called by the protocol handler to report the server certificate Note: this method is responsible for certificate verification and validation
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.bouncycastle.crypto.tls.TlsAuthentication

Fields

protected CertificateVerifyer verifyer

Public Constructors

public LegacyTlsAuthentication (CertificateVerifyer verifyer)

Public Methods

public TlsCredentials getClientCredentials (CertificateRequest certificateRequest)

Return client credentials in response to server's certificate request

Parameters
certificateRequest details of the certificate request
Returns
  • a TlsCredentials object or null for no client authentication
Throws
IOException

public void notifyServerCertificate (Certificate serverCertificate)

Called by the protocol handler to report the server certificate Note: this method is responsible for certificate verification and validation

Parameters
serverCertificate the server certificate received
Throws
IOException