Package org.bouncycastle.tls
Interface TlsCredentialedAgreement
- All Superinterfaces:
TlsCredentials
- All Known Implementing Classes:
BcDefaultTlsCredentialedAgreement
,JceDefaultTlsCredentialedAgreement
Support interface for generating a secret based on the credentials sent by a TLS peer.
-
Method Summary
Modifier and TypeMethodDescriptiongenerateAgreement
(TlsCertificate peerCertificate) Calculate an agreed secret based on our credentials and the public key credentials of our peer.Methods inherited from interface org.bouncycastle.tls.TlsCredentials
getCertificate
-
Method Details
-
generateAgreement
Calculate an agreed secret based on our credentials and the public key credentials of our peer.- Parameters:
peerCertificate
- public key certificate of our TLS peer.- Returns:
- the agreed secret.
- Throws:
IOException
- in case of an exception on generation of the secret.
-