Package org.bouncycastle.tls
Interface TlsAuthentication
- All Known Implementing Classes:
ServerOnlyTlsAuthentication
public interface TlsAuthentication
Base interface to provide TLS authentication credentials.
-
Method Summary
Modifier and TypeMethodDescriptiongetClientCredentials
(CertificateRequest certificateRequest) Return client credentials in response to server's certificate request.void
notifyServerCertificate
(TlsServerCertificate serverCertificate) Called by the protocol handler to report the server certificate Note: this method is responsible for certificate verification and validation
-
Method Details
-
notifyServerCertificate
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
-
getClientCredentials
Return client credentials in response to server's certificate request. The returned value may be null, or else it MUST implement exactly one ofTlsCredentialedAgreement
,TlsCredentialedDecryptor
, orTlsCredentialedSigner
, depending on the key exchange that was negotiated and the details of theCertificateRequest
.- Parameters:
certificateRequest
- details of the certificate request- Returns:
- a TlsCredentials object or null for no client authentication
- Throws:
IOException
-