Top Description Methods
org.bouncycastle.tls

public Interface TlsAuthentication

Known Direct Implementers
org.bouncycastle.tls.ServerOnlyTlsAuthentication
Imports
java.io.IOException

Base interface to provide TLS authentication credentials.

Method Summary

Modifier and TypeMethod and Description
public TlsCredentials

Returns:

a TlsCredentials object or null for no client authentication
getClientCredentials
(CertificateRequest
details of the certificate request
certificateRequest
)

Return client credentials in response to server's certificate request.

public void
notifyServerCertificate(TlsServerCertificate
the server certificate received
serverCertificate
)

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

Method Detail

getClientCredentialsback to summary
public TlsCredentials getClientCredentials(CertificateRequest certificateRequest) throws IOException

Return client credentials in response to server's certificate request. The returned value may be null, or else it MUST implement exactly one of TlsCredentialedAgreement, TlsCredentialedDecryptor, or TlsCredentialedSigner, depending on the key exchange that was negotiated and the details of the CertificateRequest.

Parameters
certificateRequest:CertificateRequest

details of the certificate request

Returns:TlsCredentials

a TlsCredentials object or null for no client authentication

notifyServerCertificateback to summary
public void notifyServerCertificate(TlsServerCertificate serverCertificate) throws IOException

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

Parameters
serverCertificate:TlsServerCertificate

the server certificate received