Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class DefaultTlsEncryptionCredentials

java.lang.Object
  extended byorg.bouncycastle.crypto.tls.AbstractTlsCredentials
      extended byorg.bouncycastle.crypto.tls.AbstractTlsEncryptionCredentials
          extended byorg.bouncycastle.crypto.tls.DefaultTlsEncryptionCredentials
All Implemented Interfaces:
TlsCredentials, TlsEncryptionCredentials

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public class DefaultTlsEncryptionCredentials
extends AbstractTlsEncryptionCredentials


Field Summary
protected  Certificate certificate
          Deprecated.  
protected  TlsContext context
          Deprecated.  
protected  AsymmetricKeyParameter privateKey
          Deprecated.  
 
Constructor Summary
DefaultTlsEncryptionCredentials(TlsContext context, Certificate certificate, AsymmetricKeyParameter privateKey)
          Deprecated.  
 
Method Summary
 byte[] decryptPreMasterSecret(byte[] encryptedPreMasterSecret)
          Deprecated.  
 Certificate getCertificate()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected TlsContext context
Deprecated. 

certificate

protected Certificate certificate
Deprecated. 

privateKey

protected AsymmetricKeyParameter privateKey
Deprecated. 
Constructor Detail

DefaultTlsEncryptionCredentials

public DefaultTlsEncryptionCredentials(TlsContext context,
                                       Certificate certificate,
                                       AsymmetricKeyParameter privateKey)
Deprecated. 
Method Detail

getCertificate

public Certificate getCertificate()
Deprecated. 

decryptPreMasterSecret

public byte[] decryptPreMasterSecret(byte[] encryptedPreMasterSecret)
                              throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.64