Top Description Inners Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

public Class BcDefaultTlsCredentialedAgreement

extends Object
implements TlsCredentialedAgreement
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.TlsCredentialedAgreement, org.bouncycastle.tls.TlsCredentials
Imports
java.io.IOException, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .DHPrivateKeyParameters, .DHPublicKeyParameters, .ECPrivateKeyParameters, .ECPublicKeyParameters, org.bouncycastle.tls.Certificate, .TlsCredentialedAgreement, org.bouncycastle.tls.crypto.TlsCertificate, .TlsSecret

Credentialed class generating agreed secrets from a peer's public key for our end of the TLS connection using the BC light-weight API.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
protected TlsCredentialedAgreement

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TlsSecret
generateAgreement(TlsCertificate
public key certificate of our TLS peer.
peerCertificate
)

Implements org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

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

public Certificate
getCertificate()

Implements org.bouncycastle.tls.TlsCredentials.getCertificate.

Return the certificate structure representing our identity.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

agreementCredentialsback to summary
protected TlsCredentialedAgreement agreementCredentials

Constructor Detail

BcDefaultTlsCredentialedAgreementback to summary
public BcDefaultTlsCredentialedAgreement(BcTlsCrypto crypto, Certificate certificate, AsymmetricKeyParameter privateKey)

Method Detail

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

Implements org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

Doc from org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

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.
getCertificateback to summary
public Certificate getCertificate()

Implements org.bouncycastle.tls.TlsCredentials.getCertificate.

Doc from org.bouncycastle.tls.TlsCredentials.getCertificate.

Return the certificate structure representing our identity.

Returns:Certificate

our certificate structure.

org.bouncycastle.tls.crypto.impl.bc back to summary

private Class BcDefaultTlsCredentialedAgreement.DHCredentialedAgreement

extends Object
implements TlsCredentialedAgreement
Class Inheritance
  • java.lang.Object
  • org.bouncycastle.tls.crypto.impl.bc.BcDefaultTlsCredentialedAgreement.DHCredentialedAgreement
All Implemented Interfaces
org.bouncycastle.tls.TlsCredentialedAgreement, org.bouncycastle.tls.TlsCredentials

Field Summary

Modifier and TypeField and Description
pack-priv final Certificate
pack-priv final BcTlsCrypto
pack-priv final DHPrivateKeyParameters

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public TlsSecret
generateAgreement(TlsCertificate
public key certificate of our TLS peer.
peerCertificate
)

Implements org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

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

public Certificate
getCertificate()

Implements org.bouncycastle.tls.TlsCredentials.getCertificate.

Return the certificate structure representing our identity.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certificateback to summary
pack-priv final Certificate certificate
cryptoback to summary
pack-priv final BcTlsCrypto crypto
privateKeyback to summary
pack-priv final DHPrivateKeyParameters privateKey

Constructor Detail

DHCredentialedAgreementback to summary
pack-priv DHCredentialedAgreement(BcTlsCrypto crypto, Certificate certificate, DHPrivateKeyParameters privateKey)

Method Detail

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

Implements org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

Doc from org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

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.
getCertificateback to summary
public Certificate getCertificate()

Implements org.bouncycastle.tls.TlsCredentials.getCertificate.

Doc from org.bouncycastle.tls.TlsCredentials.getCertificate.

Return the certificate structure representing our identity.

Returns:Certificate

our certificate structure.

org.bouncycastle.tls.crypto.impl.bc back to summary

private Class BcDefaultTlsCredentialedAgreement.ECCredentialedAgreement

extends Object
implements TlsCredentialedAgreement
Class Inheritance
  • java.lang.Object
  • org.bouncycastle.tls.crypto.impl.bc.BcDefaultTlsCredentialedAgreement.ECCredentialedAgreement
All Implemented Interfaces
org.bouncycastle.tls.TlsCredentialedAgreement, org.bouncycastle.tls.TlsCredentials

Field Summary

Modifier and TypeField and Description
pack-priv final Certificate
pack-priv final BcTlsCrypto
pack-priv final ECPrivateKeyParameters

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public TlsSecret
generateAgreement(TlsCertificate
public key certificate of our TLS peer.
peerCertificate
)

Implements org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

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

public Certificate
getCertificate()

Implements org.bouncycastle.tls.TlsCredentials.getCertificate.

Return the certificate structure representing our identity.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certificateback to summary
pack-priv final Certificate certificate
cryptoback to summary
pack-priv final BcTlsCrypto crypto
privateKeyback to summary
pack-priv final ECPrivateKeyParameters privateKey

Constructor Detail

ECCredentialedAgreementback to summary
pack-priv ECCredentialedAgreement(BcTlsCrypto crypto, Certificate certificate, ECPrivateKeyParameters privateKey)

Method Detail

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

Implements org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

Doc from org.bouncycastle.tls.TlsCredentialedAgreement.generateAgreement.

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.
getCertificateback to summary
public Certificate getCertificate()

Implements org.bouncycastle.tls.TlsCredentials.getCertificate.

Doc from org.bouncycastle.tls.TlsCredentials.getCertificate.

Return the certificate structure representing our identity.

Returns:Certificate

our certificate structure.