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 Details

    • generateAgreement

      TlsSecret generateAgreement(TlsCertificate peerCertificate) throws 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:
      IOException - in case of an exception on generation of the secret.