Package org.bouncycastle.tls
Class ServerOnlyTlsAuthentication
java.lang.Object
org.bouncycastle.tls.ServerOnlyTlsAuthentication
- All Implemented Interfaces:
TlsAuthentication
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal TlsCredentials
getClientCredentials
(CertificateRequest certificateRequest) Return client credentials in response to server's certificate request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bouncycastle.tls.TlsAuthentication
notifyServerCertificate
-
Constructor Details
-
ServerOnlyTlsAuthentication
public ServerOnlyTlsAuthentication()
-
-
Method Details
-
getClientCredentials
Description copied from interface:TlsAuthentication
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
.- Specified by:
getClientCredentials
in interfaceTlsAuthentication
- Parameters:
certificateRequest
- details of the certificate request- Returns:
- a TlsCredentials object or null for no client authentication
-