org.bouncycastle.crypto.tls
Class DefaultTlsSignerCredentials
java.lang.Object
org.bouncycastle.crypto.tls.AbstractTlsCredentials
org.bouncycastle.crypto.tls.AbstractTlsSignerCredentials
org.bouncycastle.crypto.tls.DefaultTlsSignerCredentials
- All Implemented Interfaces:
- TlsCredentials, TlsSignerCredentials
public class DefaultTlsSignerCredentials
- extends AbstractTlsSignerCredentials
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected TlsContext context
certificate
protected Certificate certificate
privateKey
protected AsymmetricKeyParameter privateKey
signatureAndHashAlgorithm
protected SignatureAndHashAlgorithm signatureAndHashAlgorithm
signer
protected TlsSigner signer
DefaultTlsSignerCredentials
public DefaultTlsSignerCredentials(TlsContext context,
Certificate certificate,
AsymmetricKeyParameter privateKey)
DefaultTlsSignerCredentials
public DefaultTlsSignerCredentials(TlsContext context,
Certificate certificate,
AsymmetricKeyParameter privateKey,
SignatureAndHashAlgorithm signatureAndHashAlgorithm)
getCertificate
public Certificate getCertificate()
generateCertificateSignature
public byte[] generateCertificateSignature(byte[] hash)
throws java.io.IOException
- Throws:
java.io.IOException
getSignatureAndHashAlgorithm
public SignatureAndHashAlgorithm getSignatureAndHashAlgorithm()
- Specified by:
getSignatureAndHashAlgorithm
in interface TlsSignerCredentials
- Overrides:
getSignatureAndHashAlgorithm
in class AbstractTlsSignerCredentials