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