Package org.bouncycastle.crypto.tls
Class DefaultTlsEncryptionCredentials
- java.lang.Object
-
- org.bouncycastle.crypto.tls.AbstractTlsCredentials
-
- org.bouncycastle.crypto.tls.AbstractTlsEncryptionCredentials
-
- org.bouncycastle.crypto.tls.DefaultTlsEncryptionCredentials
-
- All Implemented Interfaces:
TlsCredentials,TlsEncryptionCredentials
public class DefaultTlsEncryptionCredentials extends AbstractTlsEncryptionCredentials
Deprecated.Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
-
-
Field Summary
Fields Modifier and Type Field Description protected CertificatecertificateDeprecated.protected TlsContextcontextDeprecated.protected AsymmetricKeyParameterprivateKeyDeprecated.
-
Constructor Summary
Constructors Constructor Description DefaultTlsEncryptionCredentials(TlsContext context, Certificate certificate, AsymmetricKeyParameter privateKey)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]decryptPreMasterSecret(byte[] encryptedPreMasterSecret)Deprecated.CertificategetCertificate()Deprecated.
-
-
-
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.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-