public interface TlsAuthentication
Modifier and Type | Method and Description |
---|---|
TlsCredentials |
getClientCredentials(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
|
void notifyServerCertificate(TlsServerCertificate serverCertificate) throws java.io.IOException
serverCertificate
- the server certificate receivedjava.io.IOException
TlsCredentials getClientCredentials(CertificateRequest certificateRequest) throws java.io.IOException
TlsCredentialedAgreement
,
TlsCredentialedDecryptor
, or TlsCredentialedSigner
, depending on the key
exchange that was negotiated and the details of the CertificateRequest
.certificateRequest
- details of the certificate requestjava.io.IOException