public interface TlsCredentialedAgreement extends TlsCredentials
Modifier and Type | Method and Description |
---|---|
TlsSecret |
generateAgreement(TlsCertificate peerCertificate)
Calculate an agreed secret based on our credentials and the public key credentials of our peer.
|
getCertificate
TlsSecret generateAgreement(TlsCertificate peerCertificate) throws java.io.IOException
peerCertificate
- public key certificate of our TLS peer.java.io.IOException
- in case of an exception on generation of the secret.