Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class DefaultTlsEncryptionCredentials

java.lang.Object
  extended by org.bouncycastle.crypto.tls.DefaultTlsEncryptionCredentials
All Implemented Interfaces:
TlsCredentials, TlsEncryptionCredentials

public class DefaultTlsEncryptionCredentials
extends java.lang.Object
implements TlsEncryptionCredentials


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

Field Detail

context

protected TlsContext context

certificate

protected Certificate certificate

privateKey

protected AsymmetricKeyParameter privateKey
Constructor Detail

DefaultTlsEncryptionCredentials

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

getCertificate

public Certificate getCertificate()
Specified by:
getCertificate in interface TlsCredentials

decryptPreMasterSecret

public byte[] decryptPreMasterSecret(byte[] encryptedPreMasterSecret)
                              throws java.io.IOException
Specified by:
decryptPreMasterSecret in interface TlsEncryptionCredentials
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.49