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.
|
static java.lang.String |
getAgreementAlgorithm(java.security.PrivateKey privateKey) |
Certificate |
getCertificate()
Return the certificate structure representing our identity.
|
public JceDefaultTlsCredentialedAgreement(JcaTlsCrypto crypto, Certificate certificate, java.security.PrivateKey privateKey)
public static java.lang.String getAgreementAlgorithm(java.security.PrivateKey privateKey)
public Certificate getCertificate()
TlsCredentialsgetCertificate in interface TlsCredentialspublic TlsSecret generateAgreement(TlsCertificate peerCertificate) throws java.io.IOException
TlsCredentialedAgreementgenerateAgreement in interface TlsCredentialedAgreementpeerCertificate - public key certificate of our TLS peer.java.io.IOException - in case of an exception on generation of the secret.