Package org.bouncycastle.tls
Interface TlsCredentialedAgreement
-
- All Superinterfaces:
TlsCredentials
- All Known Implementing Classes:
BcDefaultTlsCredentialedAgreement
,JceDefaultTlsCredentialedAgreement
public interface TlsCredentialedAgreement extends TlsCredentials
Support interface for generating a secret based on the credentials sent by a TLS peer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TlsSecret
generateAgreement(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 Detail
-
generateAgreement
TlsSecret generateAgreement(TlsCertificate peerCertificate) throws java.io.IOException
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:
java.io.IOException
- in case of an exception on generation of the secret.
-
-