Package org.bouncycastle.tls
Interface TlsCredentialedSigner
- All Superinterfaces:
TlsCredentials
- All Known Implementing Classes:
BcDefaultTlsCredentialedSigner
,DefaultTlsCredentialedSigner
,JcaDefaultTlsCredentialedSigner
Support interface for generating a signature based on our private credentials.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generateRawSignature
(byte[] hash) Generate a signature against the passed in hash.Return the algorithm IDs for the signature algorithm and the associated hash it uses.Methods inherited from interface org.bouncycastle.tls.TlsCredentials
getCertificate
-
Method Details
-
generateRawSignature
Generate a signature against the passed in hash.- Parameters:
hash
- a message digest calculated across the message the signature is to apply to.- Returns:
- an encoded signature.
- Throws:
IOException
- if the hash cannot be processed, or there is an issue with the private credentials.
-
getSignatureAndHashAlgorithm
SignatureAndHashAlgorithm getSignatureAndHashAlgorithm()Return the algorithm IDs for the signature algorithm and the associated hash it uses.- Returns:
- the full algorithm details for the signature.
-
getStreamSigner
- Throws:
IOException
-