Top Description Methods
org.bouncycastle.tls

public Interface TlsCredentialedAgreement

extends TlsCredentials
Known Direct Implementers
org.bouncycastle.tls.crypto.impl.bc.BcDefaultTlsCredentialedAgreement, org.bouncycastle.tls.crypto.impl.bc.BcDefaultTlsCredentialedAgreement.DHCredentialedAgreement, org.bouncycastle.tls.crypto.impl.bc.BcDefaultTlsCredentialedAgreement.ECCredentialedAgreement, org.bouncycastle.tls.crypto.impl.jcajce.JceDefaultTlsCredentialedAgreement
Imports
java.io.IOException, org.bouncycastle.tls.crypto.TlsCertificate, .TlsSecret

Support interface for generating a secret based on the credentials sent by a TLS peer.

Method Summary

Modifier and TypeMethod and Description
public TlsSecret

Returns:

the agreed secret.
generateAgreement
(TlsCertificate
public key certificate of our TLS peer.
peerCertificate
)

Calculate an agreed secret based on our credentials and the public key credentials of our peer.

Inherited from org.bouncycastle.tls.TlsCredentials:
getCertificate

Method Detail

generateAgreementback to summary
public TlsSecret generateAgreement(TlsCertificate peerCertificate) throws IOException

Calculate an agreed secret based on our credentials and the public key credentials of our peer.

Parameters
peerCertificate:TlsCertificate

public key certificate of our TLS peer.

Returns:TlsSecret

the agreed secret.

Exceptions
IOException:
in case of an exception on generation of the secret.