public class DefaultTlsEncryptionCredentials extends AbstractTlsEncryptionCredentials
Modifier and Type | Field and Description |
---|---|
protected Certificate |
certificate |
protected TlsContext |
context |
protected AsymmetricKeyParameter |
privateKey |
Constructor and Description |
---|
DefaultTlsEncryptionCredentials(TlsContext context,
Certificate certificate,
AsymmetricKeyParameter privateKey) |
Modifier and Type | Method and Description |
---|---|
byte[] |
decryptPreMasterSecret(byte[] encryptedPreMasterSecret) |
Certificate |
getCertificate() |
protected TlsContext context
protected Certificate certificate
protected AsymmetricKeyParameter privateKey
public DefaultTlsEncryptionCredentials(TlsContext context, Certificate certificate, AsymmetricKeyParameter privateKey)
public Certificate getCertificate()
public byte[] decryptPreMasterSecret(byte[] encryptedPreMasterSecret) throws java.io.IOException
java.io.IOException