org.bouncycastle.crypto.tls
Interface TlsAuthentication
- All Known Implementing Classes:
- ServerOnlyTlsAuthentication
Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
- public interface TlsAuthentication
Base interface to provide TLS authentication credentials.
notifyServerCertificate
public void notifyServerCertificate(Certificate serverCertificate)
throws java.io.IOException
- Deprecated.
- 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:
java.io.IOException
-
getClientCredentials
public TlsCredentials getClientCredentials(CertificateRequest certificateRequest)
throws java.io.IOException
- Deprecated.
- 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:
java.io.IOException
-