public class DefaultTlsSignerCredentials extends java.lang.Object implements TlsSignerCredentials
Modifier and Type | Field and Description |
---|---|
protected Certificate |
certificate |
protected TlsContext |
context |
protected AsymmetricKeyParameter |
privateKey |
protected TlsSigner |
signer |
Constructor and Description |
---|
DefaultTlsSignerCredentials(TlsContext context,
Certificate certificate,
AsymmetricKeyParameter privateKey) |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateCertificateSignature(byte[] md5andsha1) |
Certificate |
getCertificate() |
protected TlsContext context
protected Certificate certificate
protected AsymmetricKeyParameter privateKey
protected TlsSigner signer
public DefaultTlsSignerCredentials(TlsContext context, Certificate certificate, AsymmetricKeyParameter privateKey)
public Certificate getCertificate()
getCertificate
in interface TlsCredentials
public byte[] generateCertificateSignature(byte[] md5andsha1) throws java.io.IOException
generateCertificateSignature
in interface TlsSignerCredentials
java.io.IOException