public class JceDefaultTlsCredentialedAgreement extends java.lang.Object implements TlsCredentialedAgreement
Constructor and Description |
---|
JceDefaultTlsCredentialedAgreement(JcaTlsCrypto crypto,
Certificate certificate,
java.security.PrivateKey privateKey) |
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.
|
Certificate |
getCertificate()
Return the certificate structure representing our identity.
|
public JceDefaultTlsCredentialedAgreement(JcaTlsCrypto crypto, Certificate certificate, java.security.PrivateKey privateKey)
public Certificate getCertificate()
TlsCredentials
getCertificate
in interface TlsCredentials
public TlsSecret generateAgreement(TlsCertificate peerCertificate) throws java.io.IOException
TlsCredentialedAgreement
generateAgreement
in interface TlsCredentialedAgreement
peerCertificate
- public key certificate of our TLS peer.java.io.IOException
- in case of an exception on generation of the secret.