TlsAuthentication (Bouncy Castle Library 1.52 API Specification)

org.bouncycastle.crypto.tls

## Interface TlsAuthentication

- All Known Implementing Classes:
    ServerOnlyTlsAuthentication

      public interface TlsAuthentication

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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

- - ### Method Detail

    - #### notifyServerCertificate

          void notifyServerCertificate(Certificate serverCertificate)
                                       throws java.io.IOException

      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

          TlsCredentials getClientCredentials(CertificateRequest certificateRequest)
                                              throws java.io.IOException

      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`